Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659706 - git repo webhook non-fatal error on initial push
Summary: git repo webhook non-fatal error on initial push
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 21:04 UTC by Robin Johnson
Modified: 2019-12-18 07:25 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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-06-30 21:04:23 UTC
$ git push --set-upstream origin master
Counting objects: 2, done.
Writing objects: 100% (2/2), 942 bytes | 942.00 KiB/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: fatal: ambiguous argument 'd8690e2d97c90c289d0900c5c284829e2fad1b6e~1..d8690e2d97c90c289d0900c5c284829e2fad1b6e': unknown revision or path not in the working tree.
remote: Use '--' to separate paths from revisions, like this:
remote: 'git <command> [<revision>...] -- [<file>...]'
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 261, in make_json
remote:     data['head_commit'] = get_revisions(old, new, True)
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
To git+ssh://git.gentoo.org/infra/[redacted].git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-12-18 07:25:37 UTC
Fixed  https://github.com/metajack/notify-webhook/issues/18