summaryrefslogtreecommitdiff
path: root/t/t4151-am-abort.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-12-22 14:41:19 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-22 14:41:19 -0800
commitcfa775c10ef698c7b84e2d460d04272993c30da4 (patch)
tree552d7266759f13355587e86091815b3cf4dcdd6e /t/t4151-am-abort.sh
parentMerge branch 'jk/commit-die-on-bogus-ident' (diff)
parentam --abort: keep unrelated commits since the last failure and warn (diff)
downloadtgif-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-xt/t4151-am-abort.sh9
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