diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2017-08-18 15:04:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-20 23:15:35 -0700 |
commit | d34a90478f8bb169c9cc1ede3732701f870feb37 (patch) | |
tree | 0a295c35145aa7eb16138dcbba452d33152a79b9 /t/t7400-submodule-basic.sh | |
parent | 4d7268b888d7bb6d675340ec676e4239739d0f6d (diff) | |
download | git-sb/pull-honor-submodule-update-config.tar.gz |
pull: respect submodule update configurationsb/pull-honor-submodule-update-config
Do not override the submodule configuration in the call to update
the submodules, but give a weaker default.
Reported-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index dcac364c5f..ff64bf8528 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -1289,4 +1289,26 @@ test_expect_success 'init properly sets the config' ' test_must_fail git -C multisuper_clone config --get submodule.sub1.active ' +test_expect_success 'submodule update and git pull with disabled submodule' ' + test_when_finished "rm -rf multisuper_clone" && + pwd=$(pwd) && + cat <<-\EOF >expect && + -sub0 + sub1 (test2) + sub2 (test2) + sub3 (test2) + sub4 (test2) + sub5 (test2) + EOF + git clone file://"$pwd"/multisuper multisuper_clone && + ( + cd multisuper_clone && + git config --local submodule.sub0.update none && + git submodule update --init --recursive && + git pull --recurse-submodules && + git submodule status | cut -c 1,43- >actual + ) && + test_cmp expect multisuper_clone/actual +' + test_done |