summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-12-30 23:29:11 -0500
committerJunio C Hamano <junkio@cox.net>2006-12-30 22:22:13 -0800
commit45b097947d6297a4b3f1016b05c66cdc15b411c2 (patch)
tree3caac2bb11761799baea0607ada6de14a40bd0b2 /git.c
parentef5ddb2fe0cdb3bd09acb7229512b6ae9193423f (diff)
downloadgit-45b097947d6297a4b3f1016b05c66cdc15b411c2.tar.gz
Replace "GIT_DIR" with GIT_DIR_ENVIRONMENT.
We tend to use the nice constant GIT_DIR_ENVIRONMENT when we are referring to the "GIT_DIR" constant, but git.c didn't do so. Now it does. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
-rw-r--r--git.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/git.c b/git.c
index ec897dc88c..c82ca458e4 100644
--- a/git.c
+++ b/git.c
@@ -63,14 +63,14 @@ static int handle_options(const char*** argv, int* argc)
fprintf(stderr, "No directory given for --git-dir.\n" );
usage(git_usage_string);
}
- setenv("GIT_DIR", (*argv)[1], 1);
+ setenv(GIT_DIR_ENVIRONMENT, (*argv)[1], 1);
(*argv)++;
(*argc)--;
} else if (!strncmp(cmd, "--git-dir=", 10)) {
- setenv("GIT_DIR", cmd + 10, 1);
+ setenv(GIT_DIR_ENVIRONMENT, cmd + 10, 1);
} else if (!strcmp(cmd, "--bare")) {
static char git_dir[PATH_MAX+1];
- setenv("GIT_DIR", getcwd(git_dir, sizeof(git_dir)), 1);
+ setenv(GIT_DIR_ENVIRONMENT, getcwd(git_dir, sizeof(git_dir)), 1);
} else {
fprintf(stderr, "Unknown option: %s\n", cmd);
usage(git_usage_string);