X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-submodule.sh;h=c291eed59cca35d4b08285133acaca29bd80d372;hb=aa78384156e3f6b391e88bbf13d3fae19f50750c;hp=170186f4946859e04d6a0b4ce248dd17bc877b31;hpb=d425aa5cac0b4124c6aa5520295e0fd5ed81780b;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