diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-04-25 16:41:18 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-25 16:41:18 +0900 |
commit | 01f8d78887d45dc10f29d3926d5cc52f78838846 (patch) | |
tree | bd36c10864e4a75d757732e8324e8e21b4d5b917 /t/t7411-submodule-config.sh | |
parent | Merge branch 'jk/revision-rewritten-parents-in-prio-queue' (diff) | |
parent | submodule: teach set-branch subcommand (diff) | |
download | tgif-01f8d78887d45dc10f29d3926d5cc52f78838846.tar.xz |
Merge branch 'dl/submodule-set-branch'
"git submodule" learns "set-branch" subcommand that allows the
submodule.*.branch settings to be modified.
* dl/submodule-set-branch:
submodule: teach set-branch subcommand
submodule--helper: teach config subcommand --unset
git-submodule.txt: "--branch <branch>" option defaults to 'master'
Diffstat (limited to 't/t7411-submodule-config.sh')
-rwxr-xr-x | t/t7411-submodule-config.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t7411-submodule-config.sh b/t/t7411-submodule-config.sh index 89690b7adb..fcc0fb82d8 100755 --- a/t/t7411-submodule-config.sh +++ b/t/t7411-submodule-config.sh @@ -142,6 +142,15 @@ test_expect_success 'reading submodules config from the working tree with "submo ) ' +test_expect_success 'unsetting submodules config from the working tree with "submodule--helper config --unset"' ' + (cd super && + git submodule--helper config --unset submodule.submodule.url && + git submodule--helper config submodule.submodule.url >actual && + test_must_be_empty actual + ) +' + + test_expect_success 'writing submodules config with "submodule--helper config"' ' (cd super && echo "new_url" >expect && |