diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-21 17:13:04 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-24 15:03:55 +0100 |
commit | a7f8b1b63a97c66aea6f39342313d7a5b919cfa7 (patch) | |
tree | 967235881352d2ae3c8f14fa026abdb968755841 /tests/git-backup-on-error.script | |
parent | bf479d5b735b31fde4ecfbfbca4d1217a64f8403 (diff) | |
download | lorry-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/git-backup-on-error.script')
-rwxr-xr-x | tests/git-backup-on-error.script | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/git-backup-on-error.script b/tests/git-backup-on-error.script index 134367c..8be1a83 100755 --- a/tests/git-backup-on-error.script +++ b/tests/git-backup-on-error.script @@ -30,16 +30,17 @@ normalize() { DATETIMESPEC='[0-9]*-[0-9]*-[0-9]*-[0-9]*:[0-9]*:[0-9]*' sed -r -e "s|git-pre-update-$DATETIMESPEC|git-pre-update-DATETIME|g" \ -e "s|git-post-fail-$DATETIMESPEC|git-post-fail-DATETIME|g" \ + -e '/hooks\/.*\.sample/d' \ -e "s|$DATADIR|DATADIR|g" "$@" } # mirror some history -./lorry --pull-only --log="$logfile" --working-area="$workdir" --bundle=never \ +${SRCDIR}/test-lorry --pull-only --log="$logfile" --working-area="$workdir" --bundle=never \ "$DATADIR/git-backup-test-repo.lorry" | normalize # make upstream disappear to cause errors rm -rf "$repo" -if ./lorry --pull-only --log="$logfile" --working-area="$workdir" \ +if ${SRCDIR}/test-lorry --pull-only --log="$logfile" --working-area="$workdir" \ "$DATADIR/git-backup-test-repo.lorry" --bundle=never 2>/dev/null | \ normalize then |