Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
path.c: refactor and add worktree_git_path()
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index 7ddb28754cc6592fa349b2bfa3816085c9644261..4c926990a3002884ebf3c19ab0ea7fd4ea762364 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-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, ' ');
}