Skip to contentSkip to conversation

The tests should not fail if log.date or log.decorate are set.

PATCH In review Per Cederqvist 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 The tests should not fail if log.date or log.decorate are set.

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.

---
 regression/scaffold |    4 ++++
 1 file changed, 4 insertions(+)
regression/scaffold +4 -0
index b38a3f0..546d8c6 100644
@@ -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
Signature · 1 line
1.7.10
#1 lore raw
Quoted 3 lines · Per Cederqvist

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.

Looks good.

Jeff.

Quoted 23 lines
---
 regression/scaffold |    4 ++++
 1 file changed, 4 insertions(+)
regression/scaffold +4 -0
index b38a3f0..546d8c6 100644
@@ -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
Signature · 1 line
1.7.10
Signature · 1 line
OpenIndiana oi_151a3: 8 cores, 16 GB RAM