X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/a2290fb189bee1da5e985d785e044d1681401ff7..25e38f08151f05d53bb978f5185e32cdc94650af:/tests/reject-nonancestor.sh?ds=inline 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