From: Ramkumar Ramachandra Date: Mon, 12 Nov 2012 17:41:05 +0000 (+0100) Subject: remote-hg: add missing config for basic tests X-Git-Tag: v1.8.1-rc0~5^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7241a9ffab73fe8f0f7eaa50149eaa24109350e5 remote-hg: add missing config for basic tests 'hg commit' fails otherwise in some versions of mercurial because of the missing user information. Other versions simply throw a warning and guess though. Signed-off-by: Ramkumar Ramachandra Signed-off-by: Felipe Contreras Signed-off-by: Jeff King --- diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index 40e6e3c063..5f81dfae6c 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh @@ -29,6 +29,15 @@ check () { test_cmp expected actual } +setup () { + ( + echo "[ui]" + echo "username = H G Wells " + ) >> "$HOME"/.hgrc +} + +setup + test_expect_success 'cloning' ' test_when_finished "rm -rf gitrepo*" &&