lib/docman/builders/git_provider_builder.rb in docman-0.0.91 vs lib/docman/builders/git_provider_builder.rb in docman-0.0.92

- old
+ new

@@ -7,10 +7,10 @@ def prepare_build_dir FileUtils.mkdir_p(@context['full_build_path']) end def build_with_provider - FileUtils.rm_r(Dir["#{@context['full_build_path']}/*"]) if File.directory? @context['full_build_path'] + `find #{@context['full_build_path']} -mindepth 1 -maxdepth 1 -not -name '.git' -print0 | xargs -r -0 rm -rf --` if File.directory? @context['full_build_path'] FileUtils.rm_r self['target_path'] if @context.need_rebuild? and File.directory? self['target_path'] result = @provider.perform `rsync -a --exclude '.git' #{self['target_path']}/. #{@context['full_build_path']}` result end