Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/submodule-cleanup-export-git-dir-env'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Jan 2017 23:12:14 +0000
(15:12 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Jan 2017 23:12:14 +0000
(15:12 -0800)
Code cleanup.
* sb/submodule-cleanup-export-git-dir-env:
submodule.c: use GIT_DIR_ENVIRONMENT consistently
submodule.c
patch
|
blob
|
history
raw
(from parent 1:
b85f79c
)
diff --git
a/submodule.c
b/submodule.c
index 11ff11ed893879601cf0643fb345afe80942734f..4c4f033e8a0f9f23e759949209c323875cd119fc 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-1379,7
+1379,8
@@
void prepare_submodule_repo_env(struct argv_array *out)
if (strcmp(*var, CONFIG_DATA_ENVIRONMENT))
argv_array_push(out, *var);
}
- argv_array_push(out, "GIT_DIR=.git");
+ argv_array_pushf(out, "%s=%s", GIT_DIR_ENVIRONMENT,
+ DEFAULT_GIT_DIR_ENVIRONMENT);
}
/*