Skip to content

Commit

Permalink
read-tree: setup worktree if merge is required
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Aug 29, 2008
1 parent 6577f54 commit b6469a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
usage(read_tree_usage);
if ((opts.dir && !opts.update))
die("--exclude-per-directory is meaningless unless -u");
if (opts.merge && !opts.index_only)
setup_work_tree();

if (opts.merge) {
if (stage < 2)
Expand Down

0 comments on commit b6469a8

Please sign in to comment.