upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/mod.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:49:57 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 00:49:57 +0000
commit3f14f998d64b5fa15bdddd7570b4f72874eb9f29 (patch)
tree9bfc5361d457d770033820ef770eb261abe910c8 /src/git/mod.rs
parent5833c9bdf815699838a0445f750b99b26fd4a3bd (diff)
test: disable GPG signing in all test helpers
Prevent GPG signing prompts (including Yubikey activation) during test runs by explicitly disabling commit.gpgsign and tag.gpgsign in all test repository creation helpers. Modified: - tests/common/purgatory_helpers.rs: create_test_repo_with_commit() - src/git/mod.rs: create_test_repo_with_commit() - src/purgatory/helpers.rs: create_test_repo_with_commit() All test repositories now have GPG signing disabled regardless of global git configuration.
Diffstat (limited to 'src/git/mod.rs')
-rw-r--r--src/git/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/git/mod.rs b/src/git/mod.rs
index 205e3bc..b3fee69 100644
--- a/src/git/mod.rs
+++ b/src/git/mod.rs
@@ -535,6 +535,17 @@ mod tests {
535 .current_dir(&work_dir) 535 .current_dir(&work_dir)
536 .output() 536 .output()
537 .unwrap(); 537 .unwrap();
538 // Disable GPG signing for tests (prevents yubikey prompts)
539 Command::new("git")
540 .args(["config", "commit.gpgsign", "false"])
541 .current_dir(&work_dir)
542 .output()
543 .unwrap();
544 Command::new("git")
545 .args(["config", "tag.gpgsign", "false"])
546 .current_dir(&work_dir)
547 .output()
548 .unwrap();
538 549
539 // Create a file and commit 550 // Create a file and commit
540 fs::write(work_dir.join("README.md"), "# Test").unwrap(); 551 fs::write(work_dir.join("README.md"), "# Test").unwrap();