Permalink
Browse files

Merge pull request #2196 from arunagw/issue_713

Spliting the ouput of git ls-files for running tasks Fixes #713
  • Loading branch information...
2 parents fb36f3d + 0fb0973 commit 7e4cedf5345226aab2c5731e3c51579167baeb5a @spastorino spastorino committed Jul 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/test_unit/testing.rake
@@ -108,9 +108,9 @@ namespace :test do
Rake::TestTask.new(:uncommitted => "test:prepare") do |t|
def t.file_list
if File.directory?(".svn")
- changed_since_checkin = silence_stderr { `svn status` }.map { |path| path.chomp[7 .. -1] }
+ changed_since_checkin = silence_stderr { `svn status` }.split.map { |path| path.chomp[7 .. -1] }
elsif File.directory?(".git")
- changed_since_checkin = silence_stderr { `git ls-files --modified --others` }.map { |path| path.chomp }
+ changed_since_checkin = silence_stderr { `git ls-files --modified --others` }.split.map { |path| path.chomp }
else
abort "Not a Subversion or Git checkout."
end

0 comments on commit 7e4cedf

Please sign in to comment.