]> git.scottworley.com Git - pinch/blob - tests/reject-nonancestor.sh
f8cc2e98694b7cc1afbd5ce0042d7ab8a5ab0676
[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 if python3 ./pinch.py pin "$conf";then
17 echo "FAIL: non-ancestor commit should be rejected"
18 exit 1
19 else
20 echo PASS
21 fi