]>
git.scottworley.com Git - pinch/blob - tests/reject-duplicates.sh
3 repo_dir1
="`mktemp -d`"
4 repo1
="$repo_dir1/repo"
8 echo Contents
> test-file
10 git commit
-m 'Commit message'
13 repo_dir2
="`mktemp -d`"
14 repo2
="$repo_dir2/repo"
18 echo Contents
> test-file
20 git commit
-m 'Commit message'
26 git_repo = file://$repo1
33 git_repo = file://$repo2
37 python3 .
/pinch.py pin
"$conf1"
38 python3 .
/pinch.py pin
"$conf2"
40 if python3 .
/pinch.py update
--dry-run "$conf1" "$conf2";then
41 echo "FAIL: Duplicate names should be rejected"
47 rm -rf "$repo_dir1" "$repo_dir2" "$conf1" "$conf2"