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 <artagnon@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
Ramkumar Ramachandra committed
Nov 12, 2012 at 18:41 UTC
7241a9ffab73fe8f0f7eaa50149eaa24109350e5
1 file changed
+9
contrib/remote-helpers/test-hg.sh
+9
@@ -29,6 +29,15 @@ check () {
29
test_cmp expected actual
30
}
31
32
+setup () {
33
+ (
34
+ echo "[ui]"
35
+ echo "username = H G Wells <wells@example.com>"
36
+ ) >> "$HOME"/.hgrc
37
+}
38
+
39
+setup
40
+
41
test_expect_success 'cloning' '
42
test_when_finished "rm -rf gitrepo*" &&
43