Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631428 - Warnings from hooks/post-receive.h01-gentoo-commits when pushing a replace reference to git
Summary: Warnings from hooks/post-receive.h01-gentoo-commits when pushing a replace re...
Status: RESOLVED TEST-REQUEST
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: 2017-09-19 17:20 UTC by Ulrich Müller
Modified: 2019-12-18 07:27 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 Ulrich Müller gentoo-dev 2017-09-19 17:20:17 UTC
When pushing a replace reference to proj/ebuild-mode.git I got several error messages from hooks/post-receive.h01-gentoo-commits:

$ git replace --graft d37847ae12651fffe63178237487f49006d1acf0 18f70ca4f315c5ddf2b22fcd5649cf5cf51098a6
$ git push origin 'refs/replace/*'
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 904 bytes | 904.00 KiB/s, done.
Total 4 (delta 1), reused 2 (delta 0)
remote: Warning: Use of uninitialized value $DATA{"logmsg"} in concatenation (.) or string at hooks/post-receive.h01-gentoo-commits line 732.
remote: Warning: Use of uninitialized value $DATA{"shortlog"} in sprintf at hooks/post-receive.h01-gentoo-commits line 764.
remote: Warning: Use of uninitialized value $what in concatenation (.) or string at hooks/post-receive.h01-gentoo-commits line 594.
To git+ssh://git.gentoo.org/proj/ebuild-mode.git
 * [new branch]      refs/replace/d37847ae12651fffe63178237487f49006d1acf0 -> refs/replace/d37847ae12651fffe63178237487f49006d1acf0
Comment 1 Ulrich Müller gentoo-dev 2017-09-19 18:22:59 UTC
Also, when deleting a branch:

$ git push origin --delete glep-mode
remote: fatal: Invalid revision range d06acdcf702e14ca977e657bfef6309f984673d1..0000000000000000000000000000000000000000
remote: Traceback (most recent call last):
remote:   File "hooks/post-receive.h03-notify-webhook", line 308, in <module>
remote:     data = make_json(old, new, ref)
remote:   File "hooks/post-receive.h03-notify-webhook", line 244, in make_json
remote:     revisions = get_revisions(old, new)
remote:   File "hooks/post-receive.h03-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/proj/emacs-tools.git
 - [deleted]         glep-mode
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-12-18 07:27:53 UTC
The branch deletion is resolved; I don't have any good test cases for the replacement, so please test that again.