Skip to content

Commit dab6f7f

Browse files
committed
Disable gpgsign in test repos
Previously, if you had this option set in your global gitconfig, it would be inherited for these repos, which would make running `git commit` fail, and subsequently the tests would crash. Now we explicitly disable this for the example repo.
1 parent c1dfa00 commit dab6f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Get/RawCloneTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ private func makeGitRepo(dstdir: String, tag: String?, file: StaticString = #fil
4848
try popen(["git", "-C", dstdir, "init"])
4949
try popen(["git", "-C", dstdir, "config", "user.email", "[email protected]"])
5050
try popen(["git", "-C", dstdir, "config", "user.name", "Example Example"])
51+
try popen(["git", "-C", dstdir, "config", "commit.gpgsign", "false"])
5152
try popen(["git", "-C", dstdir, "add", "."])
5253
try popen(["git", "-C", dstdir, "commit", "-m", "msg"])
5354
if let tag = tag {
@@ -115,7 +116,6 @@ extension GitTests: XCTestCaseProvider {
115116
("testHasNoVersion", testHasNoVersion),
116117
("testCloneShouldNotCrashWihoutTags", testCloneShouldNotCrashWihoutTags),
117118
("testCloneShouldCrashWihoutTags", testCloneShouldCrashWihoutTags),
118-
119119
]
120120
}
121121
}

0 commit comments

Comments
 (0)