Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-svn: Update git-svn to use the ability to place temporary files within repository directory
[gitweb.git]
/
builtin-checkout.c
diff --git
a/builtin-checkout.c
b/builtin-checkout.c
index 06904c3bd3595b4c8cbc6c66d3a1b9c364381bd6..464fd2570735485a35d34c4aa8d50e5a1930228c 100644
(file)
--- a/
builtin-checkout.c
+++ b/
builtin-checkout.c
@@
-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;