X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-submodule.sh;h=c291eed59cca35d4b08285133acaca29bd80d372;hb=edc54fb5d4ce6774fc2ac76779bd57dc2d6ab189;hp=170186f4946859e04d6a0b4ce248dd17bc877b31;hpb=07cd900112b19657531a1f5c2a15e639d98fbd18;p=git.git diff --git a/git-submodule.sh b/git-submodule.sh index 170186f49..c291eed59 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -836,13 +836,15 @@ cmd_sync() ;; esac + say "Synchronizing submodule url for '$name'" + git config submodule."$name".url "$url" + if test -e "$path"/.git then ( clear_local_git_env cd "$path" remote=$(get_default_remote) - say "Synchronizing submodule url for '$name'" git config remote."$remote".url "$url" ) fi