]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-checkout.c
Merge branch 'maint'
[git.git] / builtin-checkout.c
index d986ac7abbd619c486a377e4433cf3fca687ea7a..9377a1c71ea8571d3e36e9e19aa322db765e93c8 100644 (file)
@@ -269,6 +269,8 @@ static int merge_working_tree(struct checkout_opts *opts,
                }
 
                /* 2-way merge to the new branch */
+               topts.initial_checkout = (!active_nr &&
+                                         (old->commit == new->commit));
                topts.update = 1;
                topts.merge = 1;
                topts.gently = opts->merge;