1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ignore .gitignore'd files in rake test:uncomitted

This commit is contained in:
Akira Matsuda 2012-06-12 03:29:48 +09:00
parent 2eb4ebe308
commit 2d3e488bb3

View file

@ -87,7 +87,7 @@ namespace :test do
if File.directory?(".svn") if File.directory?(".svn")
changed_since_checkin = silence_stderr { `svn status` }.split.map { |path| path.chomp[7 .. -1] } changed_since_checkin = silence_stderr { `svn status` }.split.map { |path| path.chomp[7 .. -1] }
elsif File.directory?(".git") elsif File.directory?(".git")
changed_since_checkin = silence_stderr { `git ls-files --modified --others` }.split.map { |path| path.chomp } changed_since_checkin = silence_stderr { `git ls-files --modified --others --exclude-standard` }.split.map { |path| path.chomp }
else else
abort "Not a Subversion or Git checkout." abort "Not a Subversion or Git checkout."
end end