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

Spliting the ouput of git ls-files for running tasks Fixes #713

This commit is contained in:
Arun Agrawal 2011-07-23 13:20:10 +05:30
parent 94978b9a46
commit 7d9cf9a846

View file

@ -110,7 +110,7 @@ namespace :test do
if File.directory?(".svn")
changed_since_checkin = silence_stderr { `svn status` }.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