Browse Source
An earlier addition of "sanitize_submodule_env" with 14111fc4
(git:
submodule honor -c credential.* from command line, 2016-02-29)
turned out to be a convoluted no-op; implement what it wanted to do
correctly, and stop filtering settings given via "git -c var=val".
* jk/submodule-c-credential:
submodule: stop sanitizing config options
submodule: use prepare_submodule_repo_env consistently
submodule--helper: move config-sanitizing to submodule.c
submodule: export sanitized GIT_CONFIG_PARAMETERS
t5550: break submodule config test into multiple sub-tests
t5550: fix typo in $HTTPD_URL
maint
Junio C Hamano
9 years ago
6 changed files with 63 additions and 103 deletions
@ -1,26 +0,0 @@
@@ -1,26 +0,0 @@
|
||||
#!/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