Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a5eba76

Browse files
committed
Fix test for Fetch method
Fetch shouldn't automatically convert URLs to https.
1 parent d1ca52c commit a5eba76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/UnitTests/GitHub.App/Services/GitClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public async Task FetchUsingHttps(string repoUrl, string expectFetchUrl)
210210

211211
[TestCase("https://github.com/owner/repo", "origin", "https://github.com/owner/repo", null)]
212212
[TestCase("https://github.com/fetch/repo", "origin", "https://github.com/origin/repo", "https://github.com/fetch/repo")]
213-
[TestCase("git@github.com:owner/repo", "origin", "git@github.com:owner/repo", "https://github.com/owner/repo", Description = "Only use http style urls")]
213+
[TestCase("git@github.com:owner/repo", "origin", "git@github.com:owner/repo", "git@github.com:owner/repo", Description = "Don't convert to https")]
214214
[TestCase("https://github.com/jcansdale/repo", "jcansdale", "https://github.com/jcansdale/repo", null, Description = "Use existing remote")]
215215
[TestCase("https://github.com/jcansdale/repo.git", "jcansdale", "https://github.com/jcansdale/repo", null, Description = "Ignore trailing .git")]
216216
[TestCase("https://github.com/JCANSDALE/REPO", "jcansdale", "https://github.com/jcansdale/repo", null, Description = "Ignore different case")]

0 commit comments

Comments
 (0)