X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/ab7ebb2f956159d846cf9eb18d78130bd5821aaf..927a6713ad09808dd90e931ad8108520057fd3c2:/tests/reject-duplicates.sh diff --git a/tests/reject-duplicates.sh b/tests/reject-duplicates.sh index 34e12c7..a6978f8 100755 --- a/tests/reject-duplicates.sh +++ b/tests/reject-duplicates.sh @@ -1,48 +1,23 @@ #!/bin/sh -repo_dir1="`mktemp -d`" -repo1="$repo_dir1/repo" -git init "$repo1" -( - cd "$repo1" - echo Contents > test-file - git add test-file - git commit -m 'Commit message' -) +. ./tests/lib/test-setup.sh -repo_dir2="`mktemp -d`" -repo2="$repo_dir2/repo" -git init "$repo2" -( - cd "$repo2" - echo Contents > test-file - git add test-file - git commit -m 'Commit message' -) +foo_setup -conf1="`mktemp`" -cat > "$conf1" < "$conf2" <