lib/berkshelf/mixin/git.rb in berkshelf-7.1.0 vs lib/berkshelf/mixin/git.rb in berkshelf-7.2.0
- old
+ new
@@ -11,15 +11,15 @@
# @param [Boolean] error
# whether to raise error if the command fails
#
# @raise [String]
# the +$stdout+ from the command
- def git(command, error = true)
+ def git(command, error = true, **kwargs)
unless Berkshelf.which("git") || Berkshelf.which("git.exe") || Berkshelf.which("git.bat")
raise GitNotInstalled.new
end
- response = shell_out(%{git #{command}})
+ response = shell_out(%{git #{command}}, **kwargs)
if response.error?
raise GitCommandError.new(command, cache_path, response.stderr)
end