summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-10-26 13:14:46 -0700
committerJunio C Hamano <gitster@pobox.com>2016-10-26 13:14:47 -0700
commit92657ea597310c05b8f4ac3496ba90496286b5d6 (patch)
treecf35cd3a6b4108807c68357a50be3a5e193c3c80 /t
parentcaabffaf375d0f4b9195a04e9141852229ee5aee (diff)
parent4f21454b55f4237b7d0487ad5099c9edf4fc3967 (diff)
downloadgit-92657ea597310c05b8f4ac3496ba90496286b5d6.tar.gz
Merge branch 'jk/merge-base-fork-point-without-reflog'
"git rebase" immediately after "git clone" failed to find the fork point from the upstream. * jk/merge-base-fork-point-without-reflog: merge-base: handle --fork-point without reflog
Diffstat (limited to 't')
-rwxr-xr-xt/t6010-merge-base.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t6010-merge-base.sh b/t/t6010-merge-base.sh
index e0c5f44cac..31db7b5f91 100755
--- a/t/t6010-merge-base.sh
+++ b/t/t6010-merge-base.sh
@@ -260,6 +260,12 @@ test_expect_success 'using reflog to find the fork point' '
test_cmp expect3 actual
'
+test_expect_success '--fork-point works with empty reflog' '
+ git -c core.logallrefupdates=false branch no-reflog base &&
+ git merge-base --fork-point no-reflog derived &&
+ test_cmp expect3 actual
+'
+
test_expect_success 'merge-base --octopus --all for complex tree' '
# Best common ancestor for JE, JAA and JDD is JC
# JE