Use git_pathdup instead of xstrdup(git_path(...))
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
aba13e7c05
commit
a4f34cbb4c
@ -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)
|
||||
|
Reference in New Issue
Block a user