Browse Source
"git -c credential.<var>=<value> submodule" can now be used to propagate configuration variables related to credential helper down to the submodules. * jk/submodule-c-credential: git_config_push_parameter: handle empty GIT_CONFIG_PARAMETERS git: submodule honor -c credential.* from command line quote: implement sq_quotef() submodule: fix segmentation fault in submodule--helper clone submodule: fix submodule--helper clone usage submodule: check argc count for git submodule--helper clone submodule: don't pass empty string arguments to submodule--helper clonemaint

8 changed files with 172 additions and 19 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh |
||||
# |
||||
# Copyright (c) 2016 Jacob Keller |
||||
# |
||||
|
||||
test_description='Basic plumbing support of submodule--helper |
||||
|
||||
This test verifies the submodule--helper plumbing command used to implement |
||||
git-submodule. |
||||
' |
||||
|
||||
. ./test-lib.sh |
||||
|
||||
test_expect_success 'sanitize-config clears configuration' ' |
||||
git -c user.name="Some User" submodule--helper sanitize-config >actual && |
||||
test_must_be_empty actual |
||||
' |
||||
|
||||
sq="'" |
||||
test_expect_success 'sanitize-config keeps credential.helper' ' |
||||
git -c credential.helper=helper submodule--helper sanitize-config >actual && |
||||
echo "${sq}credential.helper=helper${sq}" >expect && |
||||
test_cmp expect actual |
||||
' |
||||
|
||||
test_done |
Loading…
Reference in new issue