~edwargix/git.sr.ht

1c7eb14916983dac2476529536c5fcb32a48df42 — Michael Forney 6 years ago a67f8ac
Prevent crash in post-update hook when ref is deleted
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/submit.py
M gitsrht/submit.py => gitsrht/submit.py +1 -1
@@ 129,7 129,7 @@ def do_post_update(repo, refs):
            update.update({
                "name": ref,
                "old": commit_to_dict(old) if old else None,
                "new": commit_to_dict(new),
                "new": commit_to_dict(new) if new else None,
            })
            payload["refs"].append(update)