diff --git a/bindings/ruby/extsources.rb b/bindings/ruby/extsources.rb index 850ac9841b1..58d18878367 100644 --- a/bindings/ruby/extsources.rb +++ b/bindings/ruby/extsources.rb @@ -46,7 +46,7 @@ ] EXTSOURCES = - `git ls-files -z #{root}`.split("\x0") + IO.popen(["git", "ls-files", "-z", root.to_s]).read.split("\x0") .collect {|file| Pathname(file)} .reject {|file| ignored_exts.include?(file.extname) ||