X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-submodule.sh;h=9bb2e13e929c824a75c648966aaaa61672b9c445;hb=471dcfdbb23ad423168d928335bc36217f9e311d;hp=3adab9363563e80e4ceb2c7fb5c3ab91ac1ef505;hpb=cfdfc5a3b2289dd54a25d7523c0cf4d3e6efd84b;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)