diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-23 07:06:14 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-23 07:06:14 -0700 |
commit | 7e4cedf5345226aab2c5731e3c51579167baeb5a (patch) | |
tree | 294041ab53201538de991005b47d2a3275d41317 /railties/lib | |
parent | fb36f3d1e4f6488c0c896666a686d45670cde04e (diff) | |
parent | 0fb09732488817fc7b3569817161d35b5636e54c (diff) | |
download | rails-7e4cedf5345226aab2c5731e3c51579167baeb5a.tar.gz rails-7e4cedf5345226aab2c5731e3c51579167baeb5a.tar.bz2 rails-7e4cedf5345226aab2c5731e3c51579167baeb5a.zip |
Merge pull request #2196 from arunagw/issue_713
Spliting the ouput of git ls-files for running tasks Fixes #713
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index b9877a83b5..33da2c0f5a 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/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 |