X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/d9a1088a3c1c6131fbd1bd5ea2a2dc10e2427eb2..df45b0111f016d06c4951c6df91359b6b9a15589:/tests/reject-nonancestor.sh diff --git a/tests/reject-nonancestor.sh b/tests/reject-nonancestor.sh index f8cc2e9..44f2a82 100755 --- a/tests/reject-nonancestor.sh +++ b/tests/reject-nonancestor.sh @@ -13,6 +13,8 @@ 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