git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] contrib/remote-helpers: setup ui.username in test-hg.sh

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Nov 11, 2012, 10:41 UTC
Message-ID
<CALkWK0kguFpA3ExSt7YKtugWq-0FvNQ=QFaKUo6uUjt8+=5mfw@mail.gmail.com>

test-hg.sh forgets to set ui.username, which is required for `hg commit`. Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 Squash this into fc/remote-hg in pu?
 contrib/remote-helpers/test-hg.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/contrib/remote-helpers/test-hg.sh
b/contrib/remote-helpers/test-hg.sh
index 40e6e3c..031dcbd 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 = A U Thor <author@example.com>"
+       ) >> "$HOME"/.hgrc
+}
+
+setup
+
 test_expect_success 'cloning' '
   test_when_finished "rm -rf gitrepo*" &&
-- 
1.7.12.1.428.g652398a.dirty
Next: Felipe Contreras
Message 1 of 3 in “contrib/remote-helpers: setup ui.username in test-hg.sh”
  1. contrib/remote-helpers: setup ui.username in test-hg.shRamkumar Ramachandra, Nov 11, 2012
  2. Felipe ContrerasNov 11, 2012
  3. Ramkumar RamachandraNov 11, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.