Merge branch 'ar/maint-mksnpath' into ar/mksnpath
* ar/maint-mksnpath: Use git_pathdup instead of xstrdup(git_path(...)) git_pathdup: returns xstrdup-ed copy of the formatted path Fix potentially dangerous use of git_path in ref.c Add git_snpath: a .git path formatting routine with output buffer Conflicts: builtin-revert.c refs.c rerere.c
This commit is contained in:
@ -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