diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-23 22:24:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-23 22:24:01 -0800 |
commit | 783cfafb91538c178d78a9f6c7b609e4f06582f8 (patch) | |
tree | 242cb4414ba31ea251d701c8ebdf25f01ce3f4f8 /git.c | |
parent | 75a7ea258c0644b79e57cab3a345807f4017dfd2 (diff) | |
parent | 0de8b94720501e869a05c52a691985fa4ce69803 (diff) | |
download | git-783cfafb91538c178d78a9f6c7b609e4f06582f8.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" ); |