Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-23 01:41:19 +0300
committerJunio C Hamano <gitster@pobox.com>2010-12-23 01:41:19 +0300
commitcfa775c10ef698c7b84e2d460d04272993c30da4 (patch)
tree552d7266759f13355587e86091815b3cf4dcdd6e /t
parent3ea3860758cc2501388059a89c1e5f4a90acb50d (diff)
parent7b3b7e37581fb5266a260687c21af1571b4ade81 (diff)
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')
-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