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