Check for : in domain name. fixes issue 6
This commit is contained in:
parent
6eda60748c
commit
7d30274f8a
|
@ -241,7 +241,11 @@ public class Repository {
|
|||
// Get the domain, example: "github.com"
|
||||
Domain = RemoteOriginUrl;
|
||||
Domain = Domain.Substring (Domain.IndexOf ("@") + 1);
|
||||
if (Domain.IndexOf (":") > -1) {
|
||||
Domain = Domain.Substring (0, Domain.IndexOf (":"));
|
||||
} else {
|
||||
Domain = Domain.Substring (0, Domain.IndexOf ("/"));
|
||||
}
|
||||
|
||||
// Get hash of the current commit
|
||||
Process.StartInfo.FileName = "git";
|
||||
|
|
Loading…
Reference in a new issue