From 7d30274f8a505e5ff08e4e972ddfb83492f82082 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 29 Apr 2010 01:59:27 +0100 Subject: [PATCH] Check for : in domain name. fixes issue 6 --- src/SparklePony.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SparklePony.cs b/src/SparklePony.cs index 2da486c2..24edce59 100644 --- a/src/SparklePony.cs +++ b/src/SparklePony.cs @@ -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";