diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-11-26 12:29:16 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-11-26 12:29:16 +0100 |
commit | b205a1860f06237d7eaa57076d9cf0d5845c77aa (patch) | |
tree | c2f1db7a1fa47c3dfdc98678f35e1c67495fd604 | |
parent | 6e5c1adcde406077dbd9f660f98b818e1b8bb197 (diff) | |
parent | 57c9080077524350b121dc3ade6548a4dde9a414 (diff) | |
download | gitlab-shell-b205a1860f06237d7eaa57076d9cf0d5845c77aa.tar.gz |
Merge pull request #197 from dblessing/fix/custom_hook_output
Fix custom hook output
-rw-r--r-- | lib/gitlab_custom_hook.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab_custom_hook.rb b/lib/gitlab_custom_hook.rb index ba11e29..5533aa8 100644 --- a/lib/gitlab_custom_hook.rb +++ b/lib/gitlab_custom_hook.rb @@ -22,7 +22,7 @@ class GitlabCustomHook def update(ref_name, old_value, new_value, repo_path) hook = hook_file('update', repo_path) return true if hook.nil? - system(hook, ref_name, old_value, new_value) ? true : false + system(hook, ref_name, old_value, new_value) end private @@ -51,11 +51,11 @@ class GitlabCustomHook # need to close stdin before reading stdout stdin.close - # only output stdut_stderr if scripts doesn't return 0 unless wait_thr.value == 0 exit_status = false - stdout_stderr.each_line { |line| puts line } end + + stdout_stderr.each_line { |line| puts line } end exit_status |