aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 6d70df6b9..e55a2a24c 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -241,22 +241,7 @@ module Homebrew
end
def git(*args)
- rd, wr = IO.pipe
-
- pid = fork do
- rd.close
- STDERR.reopen("/dev/null")
- STDOUT.reopen(wr)
- wr.close
- Dir.chdir @repository
- exec("git", *args)
- end
- wr.close
- Process.wait(pid)
-
- rd.read
- ensure
- rd.close
+ @repository.cd { Utils.popen_read("git", *args) }
end
def download