summaryrefslogtreecommitdiff
path: root/tests/tar-single-commit.setup
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-21 17:13:04 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-24 15:03:55 +0100
commita7f8b1b63a97c66aea6f39342313d7a5b919cfa7 (patch)
tree967235881352d2ae3c8f14fa026abdb968755841 /tests/tar-single-commit.setup
parentbf479d5b735b31fde4ecfbfbca4d1217a64f8403 (diff)
downloadlorry-a7f8b1b63a97c66aea6f39342313d7a5b919cfa7.tar.gz
Fix up Lorry to expect repositories to be bare.
This patch makes Lorry always create bare repositories where it can (Note that it cannot for CVS imports) and to create tarballs of bare repositories (if not disabled) which will be more efficient than bundles for creation and cloning. We may be able to disable bundles later.
Diffstat (limited to 'tests/tar-single-commit.setup')
-rwxr-xr-xtests/tar-single-commit.setup5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tar-single-commit.setup b/tests/tar-single-commit.setup
index c99450f..bfc99f8 100755
--- a/tests/tar-single-commit.setup
+++ b/tests/tar-single-commit.setup
@@ -29,7 +29,8 @@ echo "first line" > "$repo/test.txt"
cd "$DATADIR"
tar -czf tar-test-repo.tar.gz "`basename $repo`"
tar -cjf tar-test-repo.tar.bz2 "`basename $repo`"
-tar -cf tar-test-repo.tar.lzma "`basename $repo`" --lzma
+tar -cf tar-test-repo.tar "`basename $repo`"
+xz -z tar-test-repo.tar
# create the .lorry file for the tarball "repositories"
cat <<EOF > $DATADIR/tar-test-repo.lorry
@@ -50,7 +51,7 @@ cat <<EOF > $DATADIR/tar-test-repo.lorry
"type": "tarball",
"compression": "lzma",
"strip": 1,
- "url": "file://$DATADIR/tar-test-repo.tar.lzma"
+ "url": "file://$DATADIR/tar-test-repo.tar.xz"
}
}
EOF