diff options
| author | Andrew Janke | 2016-07-03 17:21:13 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-03 17:21:13 -0400 |
| commit | f4b3dadb64ad0101e60196db4d7c202b3f6b1f0b (patch) | |
| tree | b49c63a4256d9993107c504d43de6dcb261da157 /Library/Homebrew/utils/github.rb | |
| parent | 0478c2fc0f0bfb1687a57ffcdb27f39bfe241577 (diff) | |
| download | brew-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.rb | 1 |
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 |
