Check for : in domain name. fixes issue 6

This commit is contained in:
Hylke Bons 2010-04-29 01:59:27 +01:00
parent 6eda60748c
commit 7d30274f8a

View file

@ -241,7 +241,11 @@ public class Repository {
// Get the domain, example: "github.com"
Domain = RemoteOriginUrl;
Domain = Domain.Substring (Domain.IndexOf ("@") + 1);
Domain = Domain.Substring (0, Domain.IndexOf ("/"));
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";