From 3cc96d2e4dcf01b272508e48c087ad8833f4d282 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 27 Apr 2010 21:47:23 +0100 Subject: [PATCH] oops, that should be == -1 --- src/SparklePony.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparklePony.cs b/src/SparklePony.cs index 29313f33..eaca816d 100644 --- a/src/SparklePony.cs +++ b/src/SparklePony.cs @@ -48,7 +48,7 @@ public class SparklePony { Process.StartInfo.UseShellExecute = false; Process.StartInfo.FileName = "git"; Process.Start(); - if (Process.StandardOutput.ReadToEnd().IndexOf ("version") > -1) { + if (Process.StandardOutput.ReadToEnd().IndexOf ("version") == -1) { Console.WriteLine ("Git wasn't found.\nYou can get it from http://git-scm.com/."); Environment.Exit (0); }