summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59c9392)
raw | patch | inline | side by side (parent: 59c9392)
author | Matthias Lederhofer <matled@gmx.net> | |
Thu, 28 Jun 2007 14:15:25 +0000 (16:15 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 2 Jul 2007 08:33:44 +0000 (01:33 -0700) |
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>
"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>
builtin-config.c | patch | blob | history | |
path.c | patch | blob | history |
diff --git a/builtin-config.c b/builtin-config.c
index 3f7cab16d53718844a3964653a59c0feda730ad0..7d2063c1d2e9564306bb2807548f28a067ccdb88 100644 (file)
--- a/builtin-config.c
+++ b/builtin-config.c
char *home = getenv("HOME");
if (home) {
char *user_config = xstrdup(mkpath("%s/.gitconfig", home));
- setenv("GIT_CONFIG", user_config, 1);
+ setenv(CONFIG_ENVIRONMENT, user_config, 1);
free(user_config);
} else {
die("$HOME not set");
}
}
else if (!strcmp(argv[1], "--system"))
- setenv("GIT_CONFIG", ETC_GITCONFIG, 1);
+ setenv(CONFIG_ENVIRONMENT, ETC_GITCONFIG, 1);
else if (!strcmp(argv[1], "--null") || !strcmp(argv[1], "-z")) {
term = '\0';
delim = '\n';
index 6395cf23098841c16d993ae7e86b2d8dcff01cd7..c4ce96236ae043b4d997536174936abb6ac40207 100644 (file)
--- a/path.c
+++ b/path.c
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;
}