summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-10-13 06:01:09 +0200
committerAndre Arko <andre@arko.net>2013-10-13 06:01:09 +0200
commitf894bdf32f58f9bdc81c9884f08009c239b89464 (patch)
tree13a3a8e12496b2e31a049739ae2d83e4b8ef2128
parentc83b7cea7da5ebcd8f431aa9af324b588646abee (diff)
downloadbundler-f894bdf32f58f9bdc81c9884f08009c239b89464.tar.gz
look for windows git too
-rw-r--r--lib/bundler.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index b537ed7156..1c6e3bacf2 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -354,7 +354,8 @@ module Bundler
end
def git_present?
- @git_present ||= Bundler.which("git")
+ return @git_present if defined?(@git_present)
+ @git_present = Bundler.which("git") || Bundler.which("git.exe")
end
def ruby_version