summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-28 21:42:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-12-28 21:42:55 (GMT)
commit2f739695700e4a9d9de640ff623fe4e728f5b23a (patch)
treeb6f76121a20097d66a8d55f158f5e3a0dc2cecd3 /t
parent0ec9ee3bcf5c926df9d54f63ff3ed8b97e19bb0d (diff)
parent7b3b7e37581fb5266a260687c21af1571b4ade81 (diff)
downloadgit-2f739695700e4a9d9de640ff623fe4e728f5b23a.zip
git-2f739695700e4a9d9de640ff623fe4e728f5b23a.tar.gz
git-2f739695700e4a9d9de640ff623fe4e728f5b23a.tar.bz2
Merge branch 'jc/maint-am-abort-safely' into maint
* jc/maint-am-abort-safely: am --abort: keep unrelated commits since the last failure and warn
Diffstat (limited to 't')
-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 b55c411..c95c4cc 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