From b98fe272fc98db8d0205558b8b20c350da200edd Mon Sep 17 00:00:00 2001

From: sommerfeld

Date: Fri, 28 Jun 2024 23:21:29 +0100

Subject: [PATCH 1/1] test: fix test affected by user config

---

test_utils/src/git.rs | 3 +++

1 file changed, 3 insertions(+)

diff --git c/test_utils/src/git.rs c/test_utils/src/git.rs

index 76656df..c7f020e 100644

--- c/test_utils/src/git.rs

+++ c/test_utils/src/git.rs

@@ -25,6 +25,9 @@ impl GitTestRepo {

.initial_head(main_branch_name)

.mkpath(true),

)?;

+ // Make sure we have standard diffs for the tests so that user-level config does not make

+ // them fail.

+ git_repo.config()?.set_bool("diff.mnemonicPrefix", false)?;

Ok(Self {

dir: path,

git_repo,

--

libgit2 1.7.2

Reply to this note

Please Login to reply.

Discussion

No replies yet.