#722 `Could not execute pre_push_check: list index out of range` when pushing to a forked dist-git repo
Closed: Duplicate 6 months ago by onosek. Opened 8 months ago by ksurma.

I recently updated rpkg to 1.67-1 in Fedora 39.

When trying to push to a repository that has got a pre-push-check script in hooks, I am denied:

$ git push fork 2.1.3
Could not execute pre_push_check: list index out of range
error: failed to push some refs to 'ssh://pkgs.fedoraproject.org/forks/ksurma/rpms/python-Pallets-Sphinx-Themes.git'

Where fork is my ref: https://src.fedoraproject.org/fork/ksurma/rpms/python-Pallets-Sphinx-Themes/tree/2.1.3
Repository was cloned using fedpkg clone.
With the previous rpkg it worked seamlessly.

I worked around the issue by renaming the hook and pushing again. Since the error is generic, I suspect it may be an actual bug of the script. I hope this is the right place to report.


Yes, thanks for reporting it. The same message appeared in the other issue:
https://pagure.io/fedpkg/issue/554
That fix was released in fedpkg-1.45-2
EDIT: actually, this version will be released (=pushed to stable repository) during the night: https://bodhi.fedoraproject.org/updates/FEDORA-2024-28c6e45217

Metadata Update from @onosek:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

6 months ago

Log in to comment on this ticket.

Metadata