aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
diff options
context:
space:
mode:
authorAndrew Janke2016-07-03 17:21:13 -0400
committerMike McQuaid2016-07-03 17:21:13 -0400
commitf4b3dadb64ad0101e60196db4d7c202b3f6b1f0b (patch)
treeb49c63a4256d9993107c504d43de6dcb261da157 /Library/Homebrew/utils/github.rb
parent0478c2fc0f0bfb1687a57ffcdb27f39bfe241577 (diff)
downloadbrew-f4b3dadb64ad0101e60196db4d7c202b3f6b1f0b.tar.bz2
gist-logs: close temp file before passing to curl (#418)
Ensures that the data gets written to disk so curl can see it, avoiding intermittent JSON parsing errors in gist creation.
Diffstat (limited to 'Library/Homebrew/utils/github.rb')
-rw-r--r--Library/Homebrew/utils/github.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb
index 7fd484211..36f6257f7 100644
--- a/Library/Homebrew/utils/github.rb
+++ b/Library/Homebrew/utils/github.rb
@@ -140,6 +140,7 @@ module GitHub
begin
if data
data_tmpfile.write data
+ data_tmpfile.close
args += ["--data", "@#{data_tmpfile.path}"]
end