summaryrefslogtreecommitdiff
path: root/lib/chef/provider/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r--lib/chef/provider/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb
index 4d39485a62..3dd574c401 100644
--- a/lib/chef/provider/git.rb
+++ b/lib/chef/provider/git.rb
@@ -111,6 +111,7 @@ class Chef
def git_gem_version
return @git_gem_version if defined?(@git_gem_version)
+
output = git("--version").stdout
match = GIT_VERSION_PATTERN.match(output)
if match