From cc1cc62d8bd79920249f0738c20d5546f5363f28 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 28 Jun 2024 23:21:29 +0100 Subject: test: fix test affected by user config applies: nostr:note14jnggugkcf9vg42tcu6h8c842xlxacsatw7uf889xjjdtqr0ptlsfa5tyh closes nostr:note1mm77j27kvmkwvvvvth7w4atgjhxrydafl5jkhh7eztkx4fxq4nqq6fnd6y --- test_utils/src/git.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 76656df..db50165 100644 --- a/test_utils/src/git.rs +++ b/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, -- cgit v1.2.3