aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorjoyicecloud <joyicecloud@gmail.com>2013-08-29 17:12:05 -0700
committerAndre Arko <andre@arko.net>2013-09-11 16:14:46 -0700
commit7bd82641de44de6601a03ae455ce9277bcdf04b0 (patch)
treeab8e384491585136e669744125e39a318593bccf /lib/bundler.rb
parent940123fe859268037df59a0e704695cf733f5cf0 (diff)
downloadbundler-7bd82641de44de6601a03ae455ce9277bcdf04b0.tar.gz
Print a better error when git is not installed.
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 2db880ec..f6e75dd7 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -352,6 +352,10 @@ module Bundler
@gemspec_cache = {}
end
+ def git_present?
+ @git_present ||= Bundler.which("git")
+ end
+
private
def eval_yaml_gemspec(path, contents)