Use git_pathdup instead of xstrdup(git_path(...))

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Alex Riesen
2008-10-27 11:22:09 +01:00
committed by Junio C Hamano
parent aba13e7c05
commit a4f34cbb4c
9 changed files with 12 additions and 12 deletions

View File

@ -71,7 +71,7 @@ static void setup_git_env(void)
}
git_graft_file = getenv(GRAFT_ENVIRONMENT);
if (!git_graft_file)
git_graft_file = xstrdup(git_path("info/grafts"));
git_graft_file = git_pathdup("info/grafts");
}
int is_bare_repository(void)