class Git::Lib
Public Instance Methods
remove(path = '.', opts = {})
click to toggle source
Monkey patch to add –ignore-unmatch option
# File lib/mumukit/sync/store/github/git_lib.rb, line 3 def remove(path = '.', opts = {}) arr_opts = %w(-f --ignore-unmatch) arr_opts << ['-r'] if opts[:recursive] arr_opts << '--' if path.is_a?(Array) arr_opts += path else arr_opts << path end command('rm', arr_opts) end