summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-24 06:24:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-24 06:24:01 (GMT)
commit783cfafb91538c178d78a9f6c7b609e4f06582f8 (patch)
tree242cb4414ba31ea251d701c8ebdf25f01ce3f4f8 /git.c
parent75a7ea258c0644b79e57cab3a345807f4017dfd2 (diff)
parent0de8b94720501e869a05c52a691985fa4ce69803 (diff)
downloadgit-783cfafb91538c178d78a9f6c7b609e4f06582f8.zip
git-783cfafb91538c178d78a9f6c7b609e4f06582f8.tar.gz
git-783cfafb91538c178d78a9f6c7b609e4f06582f8.tar.bz2
Merge branch 'cc/replace'
* cc/replace: Documentation: talk a little bit about GIT_NO_REPLACE_OBJECTS Documentation: fix typos and spelling in replace documentation replace: use a GIT_NO_REPLACE_OBJECTS env variable
Diffstat (limited to 'git.c')
-rw-r--r--git.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/git.c b/git.c
index 743ee57..11544cd 100644
--- a/git.c
+++ b/git.c
@@ -89,6 +89,9 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
*envchanged = 1;
} else if (!strcmp(cmd, "--no-replace-objects")) {
read_replace_refs = 0;
+ setenv(NO_REPLACE_OBJECTS_ENVIRONMENT, "1", 1);
+ if (envchanged)
+ *envchanged = 1;
} else if (!strcmp(cmd, "--git-dir")) {
if (*argc < 2) {
fprintf(stderr, "No directory given for --git-dir.\n" );