X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/a2290fb189bee1da5e985d785e044d1681401ff7..a085d7e37f649b0aae8d22e4dfb448049827b989:/tests/reject-nonancestor.sh diff --git a/tests/reject-nonancestor.sh b/tests/reject-nonancestor.sh index 5608761..44f2a82 100755 --- a/tests/reject-nonancestor.sh +++ b/tests/reject-nonancestor.sh @@ -13,11 +13,11 @@ python3 ./pinch.py pin "$conf" git commit --amend -m 'Amended commit message' ) +rm -rf "$cache_dir"/* + if python3 ./pinch.py pin "$conf";then echo "FAIL: non-ancestor commit should be rejected" exit 1 else echo PASS fi - -foo_cleanup