summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorMatthias Lederhofer <matled@gmx.net>2007-06-28 16:15:25 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-02 01:33:44 -0700
commit7627943a1bb0cda6f37b66381a62facf9e200285 (patch)
tree42d37f639f6d8851a7448562b64a281de8a0d45d /path.c
parent59c93929c8b98b7be00496d61fae8979bab1841d (diff)
downloadgit-7627943a1bb0cda6f37b66381a62facf9e200285.tar.gz
getenv/setenv: use constants if available
There were places using "GIT_DIR" instead of GIT_DIR_ENVIRONMENT and "GIT_CONFIG" instead of CONFIG_ENVIRONMENT. This makes it easier to find all places touching an environment variable using git grep or similar tools. Signed-off-by: Matthias Lederhofer <matled@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 6395cf2309..c4ce96236a 100644
--- a/path.c
+++ b/path.c
@@ -252,7 +252,7 @@ char *enter_repo(char *path, int strict)
if (access("objects", X_OK) == 0 && access("refs", X_OK) == 0 &&
validate_headref("HEAD") == 0) {
- setenv("GIT_DIR", ".", 1);
+ setenv(GIT_DIR_ENVIRONMENT, ".", 1);
check_repository_format();
return path;
}