Skip to content

Commit 6148372

Browse files
committed
Remove assumption in test about presence of a git config
The tests listed below run git commit which fails when a git config does not provide user.email. + test/test-ghe-backup-repositories-rsync.sh + test/test-ghe-restore.sh + test/test-ghe-backup.sh
1 parent c335532 commit 6148372

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/testlib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ PATH="$ROOTDIR/test/bin:$ROOTDIR/bin:$ROOTDIR/libexec:$PATH"
2929
TMPDIR="$ROOTDIR/test/tmp"
3030
TRASHDIR="$TMPDIR/$(basename "$0")-$$"
3131

32+
# Set GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL}
33+
# This removes the assumption that a git config that specifies these is present.
34+
export GIT_AUTHOR_NAME=make GIT_AUTHOR_EMAIL=make GIT_COMMITTER_NAME=make GIT_COMMITTER_EMAIL=make
35+
3236
# Point commands at the test backup.config file
3337
GHE_BACKUP_CONFIG="$ROOTDIR/test/backup.config"
3438
GHE_DATA_DIR="$TRASHDIR/data"

0 commit comments

Comments
 (0)