I got a traceback upon doing a git push -f that removed a bad/incorrect commit. remote: Traceback (most recent call last): remote: File "hooks/post-receive.h02-notify-webhook", line 308, in <module> remote: data = make_json(old, new, ref) remote: File "hooks/post-receive.h02-notify-webhook", line 244, in make_json remote: revisions = get_revisions(old, new) remote: File "hooks/post-receive.h02-notify-webhook", line 122, in get_revisions remote: props = {'id': lines[0].strip().split(' ')[1], 'added': [], 'removed': [], 'modified': []} remote: IndexError: list index out of range This is something that should be easy to prevent in the code. I can make a patch for it if you point me to the source. Reproducible: Always
Here's the codebase: https://github.com/metajack/notify-webhook
*** Bug 560988 has been marked as a duplicate of this bug. ***
@dolsen: did you see the code link before? Fix welcome.
I obviously forgot about this, sorry. I did start on it, but I must have gotten busy and subsequently forgot about it. Looking again.
Obsolete