Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
Merge pull request #109 from smashwilson/windows-paths
Browse files Browse the repository at this point in the history
Search in more locations on Windows.
  • Loading branch information
smashwilson committed Jan 20, 2015
2 parents 32f56b9 + 8ddbf42 commit 0cf92b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/git-bridge.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class GitBridge
search = [
'git' # Search the inherited execution PATH. Unreliable on Macs.
'/usr/local/bin/git' # Homebrew
'C:\\Program Files (x86)\\Git\\bin\\git' # Reasonable Windows default
'"%PROGRAMFILES%\\Git\\bin\\git"' # Reasonable Windows default
'"%APPDATA%\\..\\Local\\Programs\\Git\\bin\\git"' # Contributed Windows path
]

possiblePath = search.shift()
Expand Down

0 comments on commit 0cf92b9

Please sign in to comment.