Skip to content

Commit a5703e8

Browse files
authored
Disable tag.gpgsign in test git repos (#6727)
If this setting is enabled it can break the tests depending on how the user uses gpg.
1 parent 30bf5e2 commit a5703e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SPMTestSupport/GitRepositoryExtensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public extension GitRepository {
5757
try systemQuietly([Git.tool, "-C", self.path.pathString, "config", "user.email", "[email protected]"])
5858
try systemQuietly([Git.tool, "-C", self.path.pathString, "config", "user.name", "Example Example"])
5959
try systemQuietly([Git.tool, "-C", self.path.pathString, "config", "commit.gpgsign", "false"])
60+
try systemQuietly([Git.tool, "-C", self.path.pathString, "config", "tag.gpgsign", "false"])
6061
try systemQuietly([Git.tool, "-C", self.path.pathString, "commit", "-m", message ?? "Add some files."])
6162
}
6263

0 commit comments

Comments
 (0)