Skip to content

Commit 3312526

Browse files
gerhardolpmiossec
andauthored
Remove GitUrl as git:// protocol is no more supported by GitHub (#21)
https://github.blog/2021-09-01-improving-git-protocol-security-github/#when-are-these-changes-effective Co-authored-by: Philippe Miossec <[email protected]>
1 parent 30b14eb commit 3312526

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Git.hub/APIv2/RepositoryV2.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
1+
using System.Collections.Generic;
52
using RestSharp;
63

74
namespace Git.hub.APIv2
@@ -33,7 +30,6 @@ public Repository ToV3(RestClient client)
3330
Forks = Forks,
3431
Private = Private,
3532

36-
GitUrl = string.Format("git://github.com/{0}/{1}.git", Owner, Name),
3733
SshUrl = string.Format("[email protected]:{0}/{1}.git", Owner, Name),
3834
CloneUrl = string.Format("https://github.com/{0}/{1}.git", Owner, Name),
3935
Detailed = false,

Git.hub/Repository.cs

-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ private set
3232
}
3333
}
3434

35-
/// <summary>
36-
/// Read-only clone url
37-
/// git://github.com/{user}/{repo}.git
38-
/// </summary>
39-
public string GitUrl { get; internal set; }
40-
4135
/// <summary>
4236
/// Read/Write clone url via SSH
4337
/// [email protected]/{user}/{repo.git}

0 commit comments

Comments
 (0)