]> git.scottworley.com Git - pinch/blob - tests/reject-nonancestor.sh
Immutable SearchPaths
[pinch] / tests / reject-nonancestor.sh
1 #!/bin/sh
2
3 . ./tests/lib/test-setup.sh
4
5 foo_setup
6
7 python3 ./pinch.py pin "$conf"
8
9 (
10 cd "$repo"
11 echo Other contents > other-file
12 git add other-file
13 git commit --amend -m 'Amended commit message'
14 )
15
16 rm -rf "$cache_dir"/*
17
18 if python3 ./pinch.py pin "$conf";then
19 echo "FAIL: non-ancestor commit should be rejected"
20 exit 1
21 else
22 echo PASS
23 fi