Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922887 - githooks/notify-webhook throws IndexError when deleting a branch
Summary: githooks/notify-webhook throws IndexError when deleting a branch
Status: CONFIRMED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-25 08:26 UTC by Florian Schmaus
Modified: 2024-01-25 08:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2024-01-25 08:26:49 UTC
I deleted the a branch on tex-overlay.git, which caused IndexError in notify-webhook:

flo@neo-pc tex-overlay $ git pu origin :overlay                                                                                                                                                                                                              
remote: remote: 
remote: remote: ========================================================================
remote: remote: 
remote: remote: You are not allowed to push code to this project.
remote: remote: 
remote: remote: ========================================================================
remote: remote: 
remote: fatal: Could not read from remote repository.
remote: 
remote: Please make sure you have the correct access rights
remote: and the repository exists.
remote: Traceback (most recent call last):
remote:   File "/var/gitroot/proj/tex-overlay.git/hooks/post-receive.h04-notify-webhook", line 410, in <module>
remote:     main(sys.stdin)
remote:   File "/var/gitroot/proj/tex-overlay.git/hooks/post-receive.h04-notify-webhook", line 397, in main
remote:     data = make_json(old, new, ref)
remote:   File "/var/gitroot/proj/tex-overlay.git/hooks/post-receive.h04-notify-webhook", line 316, in make_json
remote:     revisions = get_revisions(old, new)
remote:   File "/var/gitroot/proj/tex-overlay.git/hooks/post-receive.h04-notify-webhook", line 176, in get_revisions
remote:     props = {'id': lines[0].strip().split(
remote: IndexError: list index out of range
To git+ssh://git.gentoo.org/proj/tex-overlay.git
 - [deleted]                   overlay

This seems to be an issue in https://github.com/metajack/notify-webhook/, which is, as far as I can tell, not yet fixed upstream.