lib/pkg-wizard/git.rb in pkg-wizard-0.1.8 vs lib/pkg-wizard/git.rb in pkg-wizard-0.1.10
- old
+ new
@@ -1,16 +1,16 @@
require 'git'
module PKGWizard
class GitRPM
- def self.fetch(giturl, path)
+ def self.fetch(giturl, path, opts = {})
# We pull if clone exists
if File.directory?(path + '/.git')
c = Git.open(path)
c.pull
else
- Git.clone giturl, path
+ Git.clone giturl, path, opts
end
end
end
end