diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:55 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:55 -0800 |
commit | 6f1c08bdb75b37ad30103f0f12339780fdc004e2 (patch) | |
tree | 3a6909ffaaa512519c3f6f6e7a11f0956276bcd1 /worktree.c | |
parent | d008809bb5d1f9a669ee89b77b3a4b6bb7905009 (diff) | |
parent | 0aaad415bcbdd7ccdfbb27eafb2f5926540455fa (diff) | |
download | git-6f1c08bdb75b37ad30103f0f12339780fdc004e2.tar.gz |
Merge branch 'rs/absolute-pathdup'
Code cleanup.
* rs/absolute-pathdup:
use absolute_pathdup()
abspath: add absolute_pathdup()
Diffstat (limited to 'worktree.c')
-rw-r--r-- | worktree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.c b/worktree.c index 53b4771c04..d633761575 100644 --- a/worktree.c +++ b/worktree.c @@ -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++) { |