]> git.scottworley.com Git - pinch/blob - tests/reject-amend.sh
Support "log.showSignature = true"
[pinch] / tests / reject-amend.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