File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments