We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f8c654 + fd2e7da commit 5131967Copy full SHA for 5131967
1 file changed
worktree.c
@@ -80,7 +80,7 @@ static struct worktree *get_main_worktree(void)
80
int is_bare = 0;
81
int is_detached = 0;
82
83
- strbuf_addstr(&worktree_path, absolute_path(get_git_common_dir()));
+ strbuf_add_absolute_path(&worktree_path, get_git_common_dir());
84
is_bare = !strbuf_strip_suffix(&worktree_path, "/.git");
85
if (is_bare)
86
strbuf_strip_suffix(&worktree_path, "/.");
@@ -125,7 +125,7 @@ static struct worktree *get_linked_worktree(const char *id)
125
strbuf_rtrim(&worktree_path);
126
if (!strbuf_strip_suffix(&worktree_path, "/.git")) {
127
strbuf_reset(&worktree_path);
128
- strbuf_addstr(&worktree_path, absolute_path("."));
+ strbuf_add_absolute_path(&worktree_path, ".");
129
130
}
131
0 commit comments