X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/a2290fb189bee1da5e985d785e044d1681401ff7..d8e3190241be14f3f6ef78b936386544157a2a2c:/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