lib/berkshelf/mixin/git.rb in berkshelf-4.3.2 vs lib/berkshelf/mixin/git.rb in berkshelf-4.3.3
- old
+ new
@@ -11,10 +11,10 @@
# whether to raise error if the command fails
#
# @raise [String]
# the +$stdout+ from the command
def git(command, error = true)
- unless Berkshelf.which('git') || Berkshelf.which('git.exe')
+ unless Berkshelf.which('git') || Berkshelf.which('git.exe') || Berkshelf.which('git.bat')
raise GitNotInstalled.new
end
response = Buff::ShellOut.shell_out(%|git #{command}|)