X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4151-am-abort.sh;h=c95c4ccc393d0863ad53b6a2a684893282d7d9e6;hb=61cf28204508c095a68e7a9cb6307ca2a27112c9;hp=b55c4117884744db8eda17e42fe05e0e65216215;hpb=af6c6e0b19dc396849e7e09727044ba1a725e811;p=git.git diff --git a/t/t4151-am-abort.sh b/t/t4151-am-abort.sh index b55c41178..c95c4ccc3 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