From 2333f0205e169acecbbd1ed40a14e4e64c28ce63 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Mon, 12 Nov 2012 18:41:05 +0100 Subject: [PATCH] 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 --- test-hg.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test-hg.sh b/test-hg.sh index 40e6e3c..5f81dfa 100755 --- a/test-hg.sh +++ b/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*" &&