]>
Commit | Line | Data |
---|---|---|
f00c16b3 SW |
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] | |
7f4c3ace | 11 | type = git |
f00c16b3 SW |
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 |