Skip to content

Commit 7241a9f

Browse files
artagnonpeff
authored andcommitted
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 <[email protected]> Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 12ba4bd commit 7241a9f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contrib/remote-helpers/test-hg.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ check () {
2929
test_cmp expected actual
3030
}
3131

32+
setup () {
33+
(
34+
echo "[ui]"
35+
echo "username = H G Wells <[email protected]>"
36+
) >> "$HOME"/.hgrc
37+
}
38+
39+
setup
40+
3241
test_expect_success 'cloning' '
3342
test_when_finished "rm -rf gitrepo*" &&
3443

0 commit comments

Comments
 (0)