X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/ab7ebb2f956159d846cf9eb18d78130bd5821aaf..6c55232284274d9d8bcf9aa7db1f7a164c7301f9:/tests/reject-duplicates.sh?ds=inline 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" <