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

[GUILT] [PATCH] The tests should not fail if log.date or log.decorate are set.

From
Per Cederqvist <cederp@opera.com>
Date
Apr 30, 2012, 10:25 UTC
Message-ID
<87mx5t349e.fsf@opera.com>

Explicitly set log.date and log.decorate to their Git default values, so that git produces the expected output even if log.date and log.decorate are set by the user in his .gitconfig.

Signed-off-by: Per Cederqvist <cederp@opera.com>
---
 regression/scaffold |    4 ++++
 1 file changed, 4 insertions(+)
diff --git a/regression/scaffold b/regression/scaffold
index b38a3f0..546d8c6 100644
--- a/regression/scaffold
+++ b/regression/scaffold
@@ -83,6 +83,10 @@ function setup_git_repo
 	git add def
 	git commit -s -m "initial" 2> /dev/null > /dev/null
 	# the commit should be d4850419ccc1146c7169f500725ce504b9774ed0
+
+	# Explicitly set config that the tests rely on.
+	git config log.date default
+	git config log.decorate no
 }
 
 function setup_guilt_repo
-- 
1.7.10
Next: Jeff Sipek
Message 1 of 2 in “The tests should not fail if log.date or log.decorate are set.”
  1. Per CederqvistApr 30, 2012
  2. Jeff SipekApr 30, 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.