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
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
The branch deletion is resolved; I don't have any good test cases for the replacement, so please test that again.