]>
git.scottworley.com Git - pinch/blob - tests/reject-duplicates.sh
5 repo_dir1
="`mktemp -d`"
6 repo1
="$repo_dir1/repo"
10 echo Contents
> test-file
12 git commit
-m 'Commit message'
15 repo_dir2
="`mktemp -d`"
16 repo2
="$repo_dir2/repo"
20 echo Contents
> test-file
22 git commit
-m 'Commit message'
28 git_repo = file://$repo1
35 git_repo = file://$repo2
39 python3 .
/pinch.py pin
"$conf1"
40 python3 .
/pinch.py pin
"$conf2"
42 if python3 .
/pinch.py update
--dry-run "$conf1" "$conf2";then
43 echo "FAIL: Duplicate names should be rejected"
49 rm -rf "$repo_dir1" "$repo_dir2" "$conf1" "$conf2"