]> git.scottworley.com Git - pinch/blame - tests/reject-amend.sh
2.1.1: Pin faster
[pinch] / tests / reject-amend.sh
CommitLineData
0e515222
SW
1#!/bin/sh
2
3. ./tests/lib/test-setup.sh
4
5foo_setup
6
7python3 ./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
16if python3 ./pinch.py pin "$conf";then
17 echo "FAIL: non-ancestor commit should be rejected"
18 exit 1
19else
20 echo PASS
21fi