aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-01-15 19:59:22 +0800
committerXu Cheng2016-01-17 14:52:09 +0800
commitb32d21fea07a77f20fbf0c1ba7996bd77e750239 (patch)
treebfb05285d21be2d9e0f51054369ee50a290475c1 /Library
parentb73a6f195af2a29c618f453f55db98329010f385 (diff)
downloadbrew-b32d21fea07a77f20fbf0c1ba7996bd77e750239.tar.bz2
test-bot: simplify Test#git
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