threads / patch / 42601

patchtest: make diff/log work with git 2.9

Subject: [TIG PATCH] test: make diff/log work with git 2.9

## tl;dr

2 messages between Jun 16, 2016 and Aug 4, 2016. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Michael J Gruber· Jun 14, 2016, 08:34 UTC · lore
git 2.9.0 switches the default for diff.renames to true.

Set this to false in config so that the test suite runs unmodified for old and new git.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 test/tools/libgit.sh | 1 +
 1 file changed, 1 insertion(+)
Show changes to test/tools/libgit.sh +1 −0
diff --git a/test/tools/libgit.sh b/test/tools/libgit.sh
index 6a8aa54..0bce451 100644
--- a/test/tools/libgit.sh
+++ b/test/tools/libgit.sh
@@ -33,6 +33,7 @@ git_config()
 {
 	git config --local user.name "Committer"
 	git config --local user.email "c.ommitter@example.net"
+	git config --local diff.renames false
 }
 
 git_init()
-- 
2.9.0.382.g87fd384
Jonas Fonseca· Aug 4, 2016, 03:48 UTC · re: Michael J Gruber · lore

Re: [TIG PATCH] test: make diff/log work with git 2.9

On Tue, Jun 14, 2016 at 4:34 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

> git 2.9.0 switches the default for diff.renames to true.
>
> Set this to false in config so that the test suite runs unmodified for
> old and new git.
Thanks!
-- 
Jonas Fonseca

← back to recent threads