summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-26 12:29:16 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-26 12:29:16 +0100
commitb205a1860f06237d7eaa57076d9cf0d5845c77aa (patch)
treec2f1db7a1fa47c3dfdc98678f35e1c67495fd604
parent6e5c1adcde406077dbd9f660f98b818e1b8bb197 (diff)
parent57c9080077524350b121dc3ade6548a4dde9a414 (diff)
downloadgitlab-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.rb6
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