diff options
Diffstat (limited to 'worktree.c')
-rw-r--r-- | worktree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/worktree.c b/worktree.c index 52971f7082..eba4fd3a03 100644 --- a/worktree.c +++ b/worktree.c @@ -50,6 +50,7 @@ static struct worktree *get_main_worktree(void) struct strbuf worktree_path = STRBUF_INIT; strbuf_add_absolute_path(&worktree_path, get_git_common_dir()); + strbuf_strip_suffix(&worktree_path, "/."); if (!strbuf_strip_suffix(&worktree_path, "/.git")) strbuf_strip_suffix(&worktree_path, "/."); |