X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-submodule.sh;h=9bb2e13e929c824a75c648966aaaa61672b9c445;hb=176158cabd2d369151a4122c59ed8afab0ca236c;hp=3adab9363563e80e4ceb2c7fb5c3ab91ac1ef505;hpb=4d466b69fe4695ffff1de1f494dada67074d2b50;p=git.git diff --git a/git-submodule.sh b/git-submodule.sh index 3adab9363..9bb2e13e9 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -131,6 +131,7 @@ module_clone() gitdir= gitdir_base= name=$(module_name "$path" 2>/dev/null) + test -n "$name" || name="$path" base_path=$(dirname "$path") gitdir=$(git rev-parse --git-dir)