Code

git-submodule: Fix typo 'url' which should be '$url'
authorPing Yin <pkufranky@gmail.com>
Mon, 3 Mar 2008 02:03:18 +0000 (10:03 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Mar 2008 05:25:45 +0000 (21:25 -0800)
Fix typo in 'test -z "url"' when checking whether a submodule url is
empty. "url" should be "$url".

Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh

index a6aaf40b0ac5b477b73684b5a2b8b7417adaad81..67d3224c8c4c7106287aeb095ea545fe7a26b726 100755 (executable)
@@ -362,7 +362,7 @@ cmd_status()
        do
                name=$(module_name "$path") || exit
                url=$(git config submodule."$name".url)
-               if test -z "url" || ! test -d "$path"/.git
+               if test -z "$url" || ! test -d "$path"/.git
                then
                        say "-$sha1 $path"
                        continue;