Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/submodule-cleanup-export-git-dir-env'
[gitweb.git]
/
submodule.c
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);
}
/*