mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-01-24 15:19:04 +01:00
24 lines
573 B
Bash
24 lines
573 B
Bash
#!/bin/bash
|
|
|
|
: "${SHARNESS_TEST_SRCDIR:=$(cd "$(dirname "${BASH_SOURCE-$0}")" && pwd)}"
|
|
. "$SHARNESS_TEST_SRCDIR"/sharness.sh
|
|
|
|
if ! python -c 'import mercurial' > /dev/null 2>&1
|
|
then
|
|
error 'mercurial not available'
|
|
fi
|
|
|
|
GIT_AUTHOR_EMAIL=author@example.com
|
|
GIT_AUTHOR_NAME='A U Thor'
|
|
GIT_COMMITTER_EMAIL=committer@example.com
|
|
GIT_COMMITTER_NAME='C O Mitter'
|
|
export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
|
|
export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
|
|
|
|
unset XDG_CONFIG_HOME
|
|
|
|
if [[ $(uname -s) = MSYS* ]]; then
|
|
test_set_prereq WIN
|
|
export TEST_CMP='diff --strip-trailing-cr -u'
|
|
fi
|