Merge branch 'ks/no-textconv-symlink' into maint
[gitweb.git] / git-submodule.sh
index 170186f4946859e04d6a0b4ce248dd17bc877b31..c291eed59cca35d4b08285133acaca29bd80d372 100755 (executable)
@@ -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