aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorNick LaMuro <nicklamuro@gmail.com>2016-07-25 18:41:53 -0500
committerNick LaMuro <nicklamuro@gmail.com>2016-07-25 21:44:01 -0500
commit75f1f1757f6e169b3b6c3481f74e9033956c704b (patch)
treef89d4956fb825179578f7c513fcf1ef653ec68a3 /lib/bundler/source
parent1838c66f27b9668e278c7ee6ac7965a445b629cb (diff)
downloadbundler-75f1f1757f6e169b3b6c3481f74e9033956c704b.tar.gz
Add Bundler::Source::Git::GitProxy#full_version
Adds a full_version method that can be used to display the OS specific info. Useful when printing the environment information in the Bundler::Env
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/git/git_proxy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb
index feb8d013..84ff5283 100644
--- a/lib/bundler/source/git/git_proxy.rb
+++ b/lib/bundler/source/git/git_proxy.rb
@@ -83,6 +83,10 @@ module Bundler
git("--version").match(/(git version\s*)?((\.?\d+)+).*/)[2]
end
+ def full_version
+ git("--version").sub("git version", "").strip
+ end
+
def checkout
if path.exist?
return if has_revision_cached?