diff options
| author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-06-28 23:21:29 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-01 06:29:40 +0100 |
| commit | cc1cc62d8bd79920249f0738c20d5546f5363f28 (patch) | |
| tree | b9eb7685fe5bfe6ac4469c9e7c02af204f9eea7e /test_utils/src | |
| parent | 397080d94d8efdf2df95a1dc8dc82d4d7070028d (diff) | |
test: fix test affected by user config
applies:
nostr:note14jnggugkcf9vg42tcu6h8c842xlxacsatw7uf889xjjdtqr0ptlsfa5tyh
closes
nostr:note1mm77j27kvmkwvvvvth7w4atgjhxrydafl5jkhh7eztkx4fxq4nqq6fnd6y
Diffstat (limited to 'test_utils/src')
| -rw-r--r-- | test_utils/src/git.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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 { | |||
| 25 | .initial_head(main_branch_name) | 25 | .initial_head(main_branch_name) |
| 26 | .mkpath(true), | 26 | .mkpath(true), |
| 27 | )?; | 27 | )?; |
| 28 | // Make sure we have standard diffs for the tests so that user-level config does | ||
| 29 | // not make them fail. | ||
| 30 | git_repo.config()?.set_bool("diff.mnemonicPrefix", false)?; | ||
| 28 | Ok(Self { | 31 | Ok(Self { |
| 29 | dir: path, | 32 | dir: path, |
| 30 | git_repo, | 33 | git_repo, |