diff --git a/kallithea/config/post_receive_tmpl.py b/kallithea/config/post_receive_tmpl.py --- a/kallithea/config/post_receive_tmpl.py +++ b/kallithea/config/post_receive_tmpl.py @@ -22,8 +22,7 @@ def main(): # runs git and later git executes this hook. # Environ gets some additional info from kallithea system # like IP or username from basic-auth - _handler(repo_path, git_stdin_lines, os.environ) - sys.exit(0) + sys.exit(_handler(repo_path, git_stdin_lines, os.environ)) if __name__ == '__main__': diff --git a/kallithea/config/pre_receive_tmpl.py b/kallithea/config/pre_receive_tmpl.py --- a/kallithea/config/pre_receive_tmpl.py +++ b/kallithea/config/pre_receive_tmpl.py @@ -22,8 +22,7 @@ def main(): # runs git and later git executes this hook. # Environ gets some additional info from kallithea system # like IP or username from basic-auth - _handler(repo_path, git_stdin_lines, os.environ) - sys.exit(0) + sys.exit(_handler(repo_path, git_stdin_lines, os.environ)) if __name__ == '__main__':