Created
October 1, 2010 19:33
-
-
Save bojanrajkovic/606716 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitVersionControl.cs b/main/src/addins/VersionControl/MonoDevelop.VersionCont | |
index 16ecc25..4fc04cb 100644 | |
--- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitVersionControl.cs | |
+++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitVersionControl.cs | |
@@ -37,15 +37,19 @@ namespace MonoDevelop.VersionControl.Git | |
static string gitExe; | |
const string msysGitX86 = @"C:\Program Files (x86)\Git\bin\git.exe"; | |
const string msysGit = @"C:\Program Files\Git\bin\git.exe"; | |
+ const string gitOsxInstaller = "/usr/local/git/bin/git"; | |
static GitVersionControl () | |
{ | |
string git = "git"; | |
- if (MonoDevelop.Core.PropertyService.IsWindows) { | |
+ if (PropertyService.IsWindows) { | |
if (File.Exists (msysGit)) | |
git = msysGit; | |
else if (File.Exists (msysGitX86)) | |
git = msysGitX86; | |
+ } else if (PropertyService.IsMac) { | |
+ if (File.Exists (gitOsxInstaller)) | |
+ git = gitOsxInstaller; | |
} | |
try { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment