diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-11-24 12:44:46 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-24 12:44:46 -0800 |
commit | 2f9d2e22cb553d26e355e63171678a848170dcf8 (patch) | |
tree | 9b2b237fb9cc9beee2c602ce3c7822b0b456fcb8 /t/t3506-cherry-pick-ff.sh | |
parent | Merge branch 'uk/fix-author-ident-sed-script' into maint (diff) | |
parent | builtin/revert.c: don't dereference a NULL pointer (diff) | |
download | tgif-2f9d2e22cb553d26e355e63171678a848170dcf8.tar.xz |
Merge branch 'bc/fix-cherry-pick-root' into maint
* bc/fix-cherry-pick-root:
builtin/revert.c: don't dereference a NULL pointer
Diffstat (limited to 't/t3506-cherry-pick-ff.sh')
-rwxr-xr-x | t/t3506-cherry-pick-ff.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t3506-cherry-pick-ff.sh b/t/t3506-cherry-pick-ff.sh index e17ae712b1..51ca391e47 100755 --- a/t/t3506-cherry-pick-ff.sh +++ b/t/t3506-cherry-pick-ff.sh @@ -95,4 +95,14 @@ test_expect_success 'cherry pick a merge relative to nonexistent parent with --f test_must_fail git cherry-pick --ff -m 3 C ' +test_expect_success 'cherry pick a root commit with --ff' ' + git reset --hard first -- && + git rm file1 && + echo first >file2 && + git add file2 && + git commit --amend -m "file2" && + git cherry-pick --ff first && + test "$(git rev-parse --verify HEAD)" = "1df192cd8bc58a2b275d842cede4d221ad9000d1" +' + test_done |