diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-12-22 14:41:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-22 14:41:19 -0800 |
commit | cfa775c10ef698c7b84e2d460d04272993c30da4 (patch) | |
tree | 552d7266759f13355587e86091815b3cf4dcdd6e /t/t4151-am-abort.sh | |
parent | Merge branch 'jk/commit-die-on-bogus-ident' (diff) | |
parent | am --abort: keep unrelated commits since the last failure and warn (diff) | |
download | tgif-cfa775c10ef698c7b84e2d460d04272993c30da4.tar.xz |
Merge branch 'jc/maint-am-abort-safely'
* jc/maint-am-abort-safely:
am --abort: keep unrelated commits since the last failure and warn
Diffstat (limited to 't/t4151-am-abort.sh')
-rwxr-xr-x | t/t4151-am-abort.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t4151-am-abort.sh b/t/t4151-am-abort.sh index b55c411788..c95c4ccc39 100755 --- a/t/t4151-am-abort.sh +++ b/t/t4151-am-abort.sh @@ -62,4 +62,13 @@ do done +test_expect_success 'am --abort will keep the local commits intact' ' + test_must_fail git am 0004-*.patch && + test_commit unrelated && + git rev-parse HEAD >expect && + git am --abort && + git rev-parse HEAD >actual && + test_cmp expect actual +' + test_done |