diff options
author | joyicecloud <joyicecloud@gmail.com> | 2013-08-29 17:12:05 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-09-11 16:14:46 -0700 |
commit | 7bd82641de44de6601a03ae455ce9277bcdf04b0 (patch) | |
tree | ab8e384491585136e669744125e39a318593bccf /lib/bundler.rb | |
parent | 940123fe859268037df59a0e704695cf733f5cf0 (diff) | |
download | bundler-7bd82641de44de6601a03ae455ce9277bcdf04b0.tar.gz |
Print a better error when git is not installed.
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 4 |
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) |