Mercurial > kallithea
changeset 7357:939dfe77df58
hooks: clarify return value from Git hooks
don't rely on the implicit None
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 08 Aug 2018 02:23:11 +0200 |
parents | 39bdf0ab2862 |
children | 89c30b145bb8 |
files | kallithea/lib/hooks.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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