]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-submodule.sh
Merge branch 'kb/maint-submodule-savearg'
[git.git] / git-submodule.sh
index 4fd8982894a5d135cac4b27b5b42f57c72228e7e..33bc41f069d9807285db6630132e14f8c518ce47 100755 (executable)
@@ -833,11 +833,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)