]> git.scottworley.com Git - pinch/blame_incremental - tests/reject-nonancestor.sh
Introduce SearchPath type
[pinch] / tests / reject-nonancestor.sh
... / ...
CommitLineData
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
16rm -rf "$cache_dir"/*
17
18if python3 ./pinch.py pin "$conf";then
19 echo "FAIL: non-ancestor commit should be rejected"
20 exit 1
21else
22 echo PASS
23fi