Skip to content

Commit 6bd3375

Browse files
committed
Merge branch 'master' into kill-cluster-backup-noise
2 parents 9cc75ed + 282318f commit 6bd3375

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ matrix:
1111
addons:
1212
apt:
1313
packages: devscripts
14+
before_script: git fetch --unshallow
1415
script: debuild -uc -us
1516
- os: linux
1617
dist: trusty

test/test-ghe-backup.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,11 @@ begin_test "ghe-backup stores version when not run from a clone"
463463
# Make sure this doesn't exist
464464
rm -f "$GHE_REMOTE_DATA_USER_DIR/common/backup-utils-version"
465465

466-
mv "$ROOTDIR/.git" "$ROOTDIR/.gittmp"
467-
ghe-backup
468-
mv "$ROOTDIR/.gittmp" "$ROOTDIR/.git"
466+
tmpdir=$(mktemp -d $TRASHDIR/foo.XXXXXX)
467+
git clone $ROOTDIR $tmpdir/backup-utils
468+
cd $tmpdir/backup-utils
469+
rm -rf .git
470+
./bin/ghe-backup
469471

470472
# verify that ghe-backup wrote its version information to the host
471473
[ -f "$GHE_REMOTE_DATA_USER_DIR/common/backup-utils-version" ]

0 commit comments

Comments
 (0)