]> git.scottworley.com Git - pinch/blame_incremental - tests/reject-partially-unpinned.sh
Fix a bash-ism in test.sh, which is #!/bin/sh
[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]
11type = git
12git_repo = file://$repo
13git_ref = master
14EOF
15
16grep . "$conf"
17
18if python3 ./pinch.py update --dry-run "$conf";then
19 echo "FAIL: Update on an unpinned file should fail"
20 exit 1
21else
22 echo PASS
23fi