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