threads / patch / 30363

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

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

## tl;dr

2 messages between Apr 30, 2012 and Apr 30, 2012. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Per Cederqvist· Apr 30, 2012, 10:25 UTC · lore

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(+)
Show changes to regression/scaffold +4 −0
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
Jeff Sipek· Apr 30, 2012, 15:04 UTC · re: Per Cederqvist · lore

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

On Mon, Apr 30, 2012 at 12:25:49PM +0200, Per Cederqvist wrote:
> 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.
Show 23 quoted lines
> 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
> 
-- 
OpenIndiana oi_151a3: 8 cores, 16 GB RAM

← back to recent threads