File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ static struct worktree *get_main_worktree(void)
80
80
int is_bare = 0 ;
81
81
int is_detached = 0 ;
82
82
83
- strbuf_addstr (& worktree_path , absolute_path ( get_git_common_dir () ));
83
+ strbuf_add_absolute_path (& worktree_path , get_git_common_dir ());
84
84
is_bare = !strbuf_strip_suffix (& worktree_path , "/.git" );
85
85
if (is_bare )
86
86
strbuf_strip_suffix (& worktree_path , "/." );
@@ -125,7 +125,7 @@ static struct worktree *get_linked_worktree(const char *id)
125
125
strbuf_rtrim (& worktree_path );
126
126
if (!strbuf_strip_suffix (& worktree_path , "/.git" )) {
127
127
strbuf_reset (& worktree_path );
128
- strbuf_addstr (& worktree_path , absolute_path ( "." ) );
128
+ strbuf_add_absolute_path (& worktree_path , "." );
129
129
strbuf_strip_suffix (& worktree_path , "/." );
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments