]> git.scottworley.com Git - pinch/blame - tests/reject-nonancestor.sh
Start on 3.0.14
[pinch] / tests / reject-nonancestor.sh
CommitLineData
db3da89c
SW
1#!/bin/sh
2
a2290fb1 3. ./tests/lib/test-setup.sh
db3da89c 4
a2290fb1 5foo_setup
db3da89c
SW
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
0e515222
SW
16rm -rf "$cache_dir"/*
17
db3da89c
SW
18if python3 ./pinch.py pin "$conf";then
19 echo "FAIL: non-ancestor commit should be rejected"
20 exit 1
21else
22 echo PASS
23fi