X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/001b650db2f8a9e141634d63fa89250c1088f3c2..9f936f16fa5cec8d983cd2ed4006f6806a67e234:/tests/reject-duplicates.sh?ds=sidebyside diff --git a/tests/reject-duplicates.sh b/tests/reject-duplicates.sh index d30bc40..a6978f8 100755 --- a/tests/reject-duplicates.sh +++ b/tests/reject-duplicates.sh @@ -1,50 +1,23 @@ #!/bin/sh -set -e +. ./tests/lib/test-setup.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' -) +foo_setup -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' -) +repo_dir1=$repo_dir +repo1=$repo +conf1=$conf -conf1="`mktemp`" -cat > "$conf1" < "$conf2" <