Skip to content

Commit

Permalink
remote-hg: add missing config for basic tests
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Ramkumar Ramachandra authored and Jeff King committed Nov 12, 2012
1 parent 12ba4bd commit 7241a9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/remote-helpers/test-hg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ check () {
test_cmp expected actual
}

setup () {
(
echo "[ui]"
echo "username = H G Wells <wells@example.com>"
) >> "$HOME"/.hgrc
}

setup

test_expect_success 'cloning' '
test_when_finished "rm -rf gitrepo*" &&
Expand Down

0 comments on commit 7241a9f

Please sign in to comment.