diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2005-09-26 22:54:01 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-27 00:16:39 -0700 |
commit | 5da1606d0bf5b970fadfa0ca91618a1e871f6755 (patch) | |
tree | 559dd6786b16a653f9e2544f4b4ab627da6a6702 /path.c | |
parent | edde7a8b5324d88f07fcb8204da313c19b4988fa (diff) | |
download | git-5da1606d0bf5b970fadfa0ca91618a1e871f6755.tar.gz |
[PATCH] Provide access to git_dir through get_git_dir().
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'path.c')
-rw-r--r-- | path.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -41,12 +41,10 @@ char *mkpath(const char *fmt, ...) char *git_path(const char *fmt, ...) { - const char *git_dir; + const char *git_dir = get_git_dir(); va_list args; unsigned len; - git_dir = getenv(GIT_DIR_ENVIRONMENT); - if (!git_dir) git_dir = DEFAULT_GIT_DIR_ENVIRONMENT; len = strlen(git_dir); if (len > PATH_MAX-100) return bad_path; |