Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ def git(*args: str) -> str:


def make_repo(tmp: pathlib.Path) -> pathlib.Path:
"""A one-commit repository with committer identity set locally."""
"""A one-commit repository with committer identity and signing set locally."""
main = tmp / "mainrepo"
main.mkdir()
git("init", "-q", str(main))
git("-C", str(main), "config", "user.email", "t@t")
git("-C", str(main), "config", "user.name", "t")
# Repo-local only: machines with commit.gpgsign=true globally have no key for
# the fixture identity and every setup commit errors out (#2358).
git("-C", str(main), "config", "commit.gpgsign", "false")
Comment thread
kyle-sexton marked this conversation as resolved.
git("-C", str(main), "commit", "-q", "--allow-empty", "-m", "init")
return main

Expand Down