Skip to content

Commit

Permalink
fixes subversion ignore which was broken commit before last
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Georgi committed Sep 3, 2008
1 parent 4449f94 commit 38c6a67
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/externals/scms/svn_project.rb
Expand Up @@ -75,19 +75,15 @@ def append_ignore path
child = File.basename(path)

rows = ignore_text(path).split(/\n/)

return if rows.detect {|row| row.strip == child.strip}

rows << child.strip

rows.delete_if {|row| row =~ /^\s*$/}

Dir.chdir(parent) do

open('.gitignore', 'w') do |f|
f.write "#{rows.compact.join("\n")}\n"
end
puts `svn propset svn:ignore "#{ignore_text(path)}" .`
puts `svn propset svn:ignore "#{rows.compact.join("\n")}\n" .`
end
end

Expand Down

0 comments on commit 38c6a67

Please sign in to comment.