]> git.scottworley.com Git - pinch/blame_incremental - tests/reject-partially-unpinned.sh
Rename Channel -> TarrableSearchPath
[pinch] / tests / reject-partially-unpinned.sh
... / ...
CommitLineData
1#!/bin/sh
2
3. ./tests/lib/test-setup.sh
4
5foo_setup
6
7python3 ./pinch.py pin "$conf"
8
9cat >> "$conf" <<EOF
10[bar]
11git_repo = file://$repo
12git_ref = master
13EOF
14
15grep . "$conf"
16
17if python3 ./pinch.py update --dry-run "$conf";then
18 echo "FAIL: Update on an unpinned file should fail"
19 exit 1
20else
21 echo PASS
22fi