]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-checkout.c
Merge branch 'jk/maint-commit-v-strip'
[git.git] / builtin-checkout.c
index 06904c3bd3595b4c8cbc6c66d3a1b9c364381bd6..464fd2570735485a35d34c4aa8d50e5a1930228c 100644 (file)
@@ -397,8 +397,7 @@ 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.initial_checkout = is_cache_unborn();
                topts.update = 1;
                topts.merge = 1;
                topts.gently = opts->merge;