# HG changeset patch # User Mads Kiilerich # Date 1533687791 -7200 # Node ID 939dfe77df58e27ad82027c57d69aa434b8228e5 # Parent 39bdf0ab2862c055dccf05a7227b7f5a172ded6a hooks: clarify return value from Git hooks don't rely on the implicit None diff -r 39bdf0ab2862 -r 939dfe77df58 kallithea/lib/hooks.py --- a/kallithea/lib/hooks.py Wed Aug 08 02:23:11 2018 +0200 +++ b/kallithea/lib/hooks.py Wed Aug 08 02:23:11 2018 +0200 @@ -400,6 +400,7 @@ baseui, repo = _hook_environment(repo_path) scm_repo = repo.scm_instance push_lock_handling(baseui, scm_repo) + return 0 def handle_git_post_receive(repo_path, git_stdin_lines): @@ -454,3 +455,4 @@ git_revs += ['tag=>%s' % push_ref['name']] log_push_action(baseui, scm_repo, _git_revs=git_revs) + return 0