diff options
Diffstat (limited to 'lib/gitlab_custom_hook.rb')
-rw-r--r-- | lib/gitlab_custom_hook.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_custom_hook.rb b/lib/gitlab_custom_hook.rb index 5533aa8..a099e79 100644 --- a/lib/gitlab_custom_hook.rb +++ b/lib/gitlab_custom_hook.rb @@ -33,7 +33,7 @@ class GitlabCustomHook # we combine both stdout and stderr as we don't know what stream # will be used by the custom hook - Open3.popen2e (hook) do |stdin, stdout_stderr, wait_thr| + Open3.popen2e(hook) do |stdin, stdout_stderr, wait_thr| exit_status = true stdin.sync = true @@ -43,7 +43,7 @@ class GitlabCustomHook begin # inject all the changes as stdin to the hook changes.lines do |line| - stdin.puts (line) + stdin.puts(line) end rescue Errno::EPIPE end |