summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2012-11-12 18:41:05 +0100
committerJeff King <peff@peff.net>2012-11-12 15:34:53 -0500
commit7241a9ffab73fe8f0f7eaa50149eaa24109350e5 (patch)
tree9f6e07821f9af808168197c88204e57605a26fc4 /contrib
parent12ba4bd4ece3b53c810ac72124ff9ed818cffcd6 (diff)
downloadgit-7241a9ffab73fe8f0f7eaa50149eaa24109350e5.tar.gz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/remote-helpers/test-hg.sh9
1 files changed, 9 insertions, 0 deletions
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 <wells@example.com>"
+ ) >> "$HOME"/.hgrc
+}
+
+setup
+
test_expect_success 'cloning' '
test_when_finished "rm -rf gitrepo*" &&