Merge branch 'rs/absolute-pathdup'

Code cleanup.

* rs/absolute-pathdup:
  use absolute_pathdup()
  abspath: add absolute_pathdup()
This commit is contained in:
Junio C Hamano
2017-02-02 13:36:55 -08:00
6 changed files with 18 additions and 4 deletions

View File

@ -145,7 +145,7 @@ done:
static void mark_current_worktree(struct worktree **worktrees)
{
char *git_dir = xstrdup(absolute_path(get_git_dir()));
char *git_dir = absolute_pathdup(get_git_dir());
int i;
for (i = 0; worktrees[i]; i++) {