Skip to content

Commit a979d66

Browse files
authored
fix(tests): disable gpgsign during test (#58)
1 parent af262ba commit a979d66

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/devtools/test_add_license_header.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ def _git(repo: Path, *args: str, year: int | None = None) -> None:
7272
stamp = f"{year}-06-15T12:00:00"
7373
env["GIT_AUTHOR_DATE"] = stamp
7474
env["GIT_COMMITTER_DATE"] = stamp
75-
subprocess.run(["git", *args], cwd=repo, env=env, check=True, capture_output=True)
75+
subprocess.run(
76+
["git", "-c", "commit.gpgsign=false", *args],
77+
cwd=repo,
78+
env=env,
79+
check=True,
80+
capture_output=True,
81+
)
7682

7783

7884
# --- normalize -------------------------------------------------------------

0 commit comments

Comments
 (0)