diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-11-24 12:46:40 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-24 12:46:40 -0800 |
commit | a274f5b21d32adca60572fc8dd2a7560ccf041a8 (patch) | |
tree | 55448a94fe4f1c707f26463d8dcb574ccbb46121 /git-submodule.sh | |
parent | Merge branch 'jk/maint-rev-list-nul' into maint (diff) | |
parent | submodule sync: Update "submodule.<name>.url" for empty directories (diff) | |
download | tgif-a274f5b21d32adca60572fc8dd2a7560ccf041a8.tar.xz |
Merge branch 'ak/submodule-sync' into maint
* ak/submodule-sync:
submodule sync: Update "submodule.<name>.url" for empty directories
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 9ebbab798d..c291eed59c 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -836,11 +836,12 @@ cmd_sync() ;; esac + say "Synchronizing submodule url for '$name'" + git config submodule."$name".url "$url" + if test -e "$path"/.git then ( - say "Synchronizing submodule url for '$name'" - git config submodule."$name".url "$url" clear_local_git_env cd "$path" remote=$(get_default_remote) |