We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae76cb9 + 0b9dca4 commit 2acf365Copy full SHA for 2acf365
2 files changed
git-submodule.sh
@@ -839,10 +839,11 @@ cmd_sync()
839
if test -e "$path"/.git
840
then
841
(
842
+ say "Synchronizing submodule url for '$name'"
843
+ git config submodule."$name".url "$url"
844
clear_local_git_env
845
cd "$path"
846
remote=$(get_default_remote)
- say "Synchronizing submodule url for '$name'"
847
git config remote."$remote".url "$url"
848
)
849
fi
t/t7403-submodule-sync.sh
@@ -58,6 +58,9 @@ test_expect_success '"git submodule sync" should update submodule URLs' '
58
(cd super-clone/submodule &&
59
git checkout master &&
60
git pull
61
+ ) &&
62
+ (cd super-clone &&
63
+ test -d "$(git config submodule.submodule.url)"
64
65
'
66
0 commit comments