Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/xdiff-drop-xdl-fast-hash'
[gitweb.git]
/
builtin
/
merge-base.c
diff --git
a/builtin/merge-base.c
b/builtin/merge-base.c
index c0d1822eb3ad371b9ab0b830aed2cc2741a978bd..b572a37c2611b2a8c20b1db7edac68623d371a38 100644
(file)
--- a/
builtin/merge-base.c
+++ b/
builtin/merge-base.c
@@
-173,6
+173,9
@@
static int handle_fork_point(int argc, const char **argv)
revs.initial = 1;
for_each_reflog_ent(refname, collect_one_reflog_ent, &revs);
+ if (!revs.nr && !get_sha1(refname, sha1))
+ add_one_commit(sha1, &revs);
+
for (i = 0; i < revs.nr; i++)
revs.commit[i]->object.flags &= ~TMP_MARK;