]> git.scottworley.com Git - pinch/blame - tests/reject-partially-unpinned.sh
Release 3.0.0
[pinch] / tests / reject-partially-unpinned.sh
CommitLineData
f00c16b3
SW
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]
7f4c3ace 11type = git
f00c16b3
SW
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