Skip to content

Commit d629c40

Browse files
jrngitster
authored andcommitted
merge: do not setup worktree twice
Builtins do not need to run setup_worktree() for themselves, since the builtin machinery runs it for them. Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6586b1f commit d629c40

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builtin-merge.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,6 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
840840
const char *best_strategy = NULL, *wt_strategy = NULL;
841841
struct commit_list **remotes = &remoteheads;
842842

843-
setup_work_tree();
844843
if (file_exists(git_path("MERGE_HEAD")))
845844
die("You have not concluded your merge. (MERGE_HEAD exists)");
846845
if (read_cache_unmerged())

0 commit comments

Comments
 (0)