From 9a9ebd46d1037239ecdd35edabab67e4f09e6ec4 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 12 Nov 2013 23:05:43 +0000 Subject: [PATCH] git linux: Check user's local bin folder for possibly newer git version. Closes #1425 --- SparkleLib/Git/SparkleGit.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleLib/Git/SparkleGit.cs b/SparkleLib/Git/SparkleGit.cs index 21a48856..a96cdd02 100644 --- a/SparkleLib/Git/SparkleGit.cs +++ b/SparkleLib/Git/SparkleGit.cs @@ -83,9 +83,10 @@ namespace SparkleLib.Git { protected string LocateCommand (string name) { string [] possible_command_paths = new string [] { + Environment.GetFolderPath (Environment.SpecialFolder.Personal) + "/bin/" + name, Defines.INSTALL_DIR + "/bin/" + name, - "/usr/bin/" + name, "/usr/local/bin/" + name, + "/usr/bin/" + name, "/opt/local/bin/" + name };