diff options
| author | Denton Liu <liu.denton@gmail.com> | 2019-02-08 03:21:31 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-02-08 12:02:58 -0800 |
| commit | c89c494240a516b082f397130ae44df2e757866b (patch) | |
| tree | 72488a621526c4655aef52edd5eff221e1bb975b /t/t7411-submodule-config.sh | |
| parent | 7a4bb55f3a47756b5cd9ca2d120c7fe119439e81 (diff) | |
| download | git-c89c494240a516b082f397130ae44df2e757866b.tar.gz | |
submodule--helper: teach config subcommand --unset
This teaches submodule--helper config the --unset option, which removes
the specified configuration key from the .gitmodule file.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 && |
