summaryrefslogtreecommitdiff
path: root/t/t2016-checkout-patch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-12-23 13:59:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-23 13:59:46 -0800
commit04cd9996383791cde0e866eb96e516f7646227c3 (patch)
treecae258ce91a240e1ffae64d736386d7c9060ed01 /t/t2016-checkout-patch.sh
parentMerge branch 'js/no-more-prepare-for-main-in-test' (diff)
parentcheckout -p: handle tree arguments correctly again (diff)
downloadtgif-04cd9996383791cde0e866eb96e516f7646227c3.tar.xz
Merge branch 'dl/checkout-p-merge-base'
Fix to a regression introduced during this cycle. * dl/checkout-p-merge-base: checkout -p: handle tree arguments correctly again
Diffstat (limited to 't/t2016-checkout-patch.sh')
-rwxr-xr-xt/t2016-checkout-patch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t2016-checkout-patch.sh b/t/t2016-checkout-patch.sh
index d91a329eb3..abfd586c32 100755
--- a/t/t2016-checkout-patch.sh
+++ b/t/t2016-checkout-patch.sh
@@ -123,4 +123,9 @@ test_expect_success PERL 'none of this moved HEAD' '
verify_saved_head
'
+test_expect_success PERL 'empty tree can be handled' '
+ test_when_finished "git reset --hard" &&
+ git checkout -p $(test_oid empty_tree) --
+'
+
test_done