git: rework how to do excludes
This commit is contained in:
@@ -221,11 +221,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def set_excludes
|
def set_excludes
|
||||||
open(File.join(@resource.value(:path), '.git/info/exclude'), 'w') do |f|
|
at_path { open('.git/info/exclude', 'w') { |f| @resource.value(:excludes).each { |ex| f.write(ex + "\n") }}}
|
||||||
@resource.value(:excludes).each do |ex|
|
|
||||||
f.write(ex + "\n")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_revision(rev)
|
def get_revision(rev)
|
||||||
|
|||||||
Reference in New Issue
Block a user