diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-10 10:38:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-10 10:38:31 -0700 |
commit | 8ab8d959c6bf2f111590a230c841c352b8cf6518 (patch) | |
tree | 022d9d6eee6d6508bea4dc5b81be0de57b588f33 /config.c | |
parent | e31165ce69ef3986e8b5477d52cc7d4e19b4212d (diff) | |
parent | 89044baa8b8a14b48e78a42ebdc43cfcd144ce28 (diff) | |
download | git-8ab8d959c6bf2f111590a230c841c352b8cf6518.tar.gz git-8ab8d959c6bf2f111590a230c841c352b8cf6518.tar.xz |
Merge branch 'jk/submodule-c-credential' into js/http-custom-headers
* 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
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 clone
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ void git_config_push_parameter(const char *text) { struct strbuf env = STRBUF_INIT; const char *old = getenv(CONFIG_DATA_ENVIRONMENT); - if (old) { + if (old && *old) { strbuf_addstr(&env, old); strbuf_addch(&env, ' '); } |