can't push to binutils-gdb, git-hooks rejecting commits

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.devel,gmane.comp.gnu.binutils
Message-ID <[email protected]>
Hi,

I'm trying to push a patch to master, but it's getting rejected by the
server-side git hooks.  Anyone else seeing the same?  See below.

Repeating that big "git rev-list" command below locally shows:

  fatal: bad revision '^refs/heads/users/hjl/pr17709'

That branch doesn't appear to exist anymore.   Sounds like the hooks
need to run "git remote prune origin" on their clone?  Does that make
sense?

Joel, any ideas?

$ git push ssh://[email protected]/git/binutils-gdb.git HEAD:master
Counting objects: 6, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.19 KiB | 0 bytes/s, done.
Total 6 (delta 5), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update.py", line 69, in <module>
remote:     check_update(args.ref_name, args.old_rev, args.new_rev)
remote:   File "hooks/update.py", line 62, in check_update
remote:     update_cls.validate()
remote:   File "/sourceware1/projects/src-home/git-hooks/hooks/updates/__init__.py", line 123, in validate
remote:     self.__check_max_commit_emails()
remote:   File "/sourceware1/projects/src-home/git-hooks/hooks/updates/__init__.py", line 653, in __check_max_commit_emails
remote:     self.__set_send_email_p_attr(self.added_commits)
remote:   File "/sourceware1/projects/src-home/git-hooks/hooks/updates/__init__.py", line 713, in __set_send_email_p_attr
remote:     _split_lines=True)
remote:   File "/sourceware1/projects/src-home/git-hooks/hooks/git.py", line 132, in f
remote:     return git_run(command, *args, **kwargs)
remote:   File "/sourceware1/projects/src-home/git-hooks/hooks/git.py", line 104, in git_run
remote:     output)
remote: git.CalledProcessError: Command 'git rev-list 0d999a6ef0f98b22430d70951408869864c979e0 ^refs/heads/users/hjl/pr17709 ^refs/heads/users/hjl/compressed ^refs/heads/users/ibm/binutils-2_25 ^refs/heads/users/ibm/binutils-2_24 ^refs/heads/users/palves/cxx-eliminate-cleanups ^refs/heads/users/hjl/mpx/plt2 ^refs/heads/users/hjl/branch ^refs/heads/users/arnez/lk3 ^refs/heads/users/hjl/dynobj ^refs/heads/users/apinski/gdb-ilp32-gdbserver ^refs/heads/users/ccoutant/two-level-line-150331 ^refs/heads/users/hjl/version ^refs/heads/users/bheckel/fortran-vla-strings ^refs/heads/users/palves/thread_apply-v2 ^refs/heads/users/arnez/lk ^refs/heads/users/palves/whatis ^refs/heads/users/palves/cxx-target_ops ^refs/heads/users/hjl/output ^refs/heads/users/hjl/secondary/master ^refs/heads/users/hjl/mpx/pltext8 ^refs/heads/users/hjl/pr12639 ^refs/heads/users/palves/core-prstatus-rework ^refs/heads/users/hjl/pr18599 ^refs/heads/users/hjl/got ^refs/heads/users/mwk/s390-relro-old ^refs/heads/users/hjl/pr18028 ^refs/heads/users/palves/cxx-gdb_exceptions ^refs/heads/users/simark/user-selection-rfc ^refs/heads/users/hjl/link_assignments ^refs/heads/users/hl/pr21679 ^refs/heads/users/pinskia/gdb-aarch64-ilp32 ^refs/heads/users/rth/x86-seg ^refs/heads/users/hjl/gold-test ^refs/heads/users/simark/ptid-in-fetch-store-regs ^refs/heads/users/bheckel/fortran-oop-extend-type ^refs/heads/users/palves/dwarf2_per_objfile ^refs/heads/users/palves/fix-double-free ^refs/heads/users/hjl/noisa ^refs/heads/users/ccoutant/experimental-relr ^refs/heads/users/palves/interrupt-while-step-over-v1 ^refs/heads/users/mwk/s390-relro-rel ^refs/heads/users/palves/jit-speedup ^refs/heads/users/ARM/embedded-gdb-7.10-branch ^refs/heads/users/hjl/mpx/plt32 ^refs/heads/users/hjl/mpx/pltext16 ^refs/heads/users/aoliva/SFN ^refs/heads/users/alahay01/targetregcache ^refs/heads/users/palves/dwarf5-regression-for-jan ^refs/heads/users/hjl/compress ^refs/heads/users/hjl/lto-mixed/master ^refs/heads/users/hjl/pr21884 ^refs/heads/users/hjl/linux/master ^refs/heads/users/ccoutant/two-level-line-tables ^refs/heads/users/palves/line_header_leak ^refs/heads/users/qiyao/target-desc-2 ^refs/heads/users/qiyao/target-desc-3 ^refs/heads/users/ARM/sve ^refs/heads/users/hjl/pr20276 ^refs/heads/users/palves/cxx-enum-flags ^refs/heads/users/hjl/pr17878 ^refs/heads/users/ppalka/readline-7.0-update ^refs/heads/users/hjl/cet/master ^refs/heads/users/palves/amd64-tdesc ^refs/heads/users/bheckel/fortran-entry-point-nested-subroutines ^refs/heads/users/hjl/pr19818 ^refs/heads/users/palves/Wwrite-strings-v1.5 ^refs/heads/users/hjl/gpoff ^refs/heads/users/ppalka/readline-6.3-update ^refs/heads/users/hjl/sharable ^refs/heads/users/palves/fix-objc-tests ^refs/heads/users/hjl/property ^refs/heads/users/keiths/intelligent-breakpoint_re_set ^refs/heads/users/mwk/s390-relro ^refs/heads/users/hjl/tls ^refs/heads/users/hjl/gdb-8.0-branch ^refs/heads/users/hjl/binutils-2_25-branch ^refs/heads/users/palves/gdbserver-extract-unsigned-integer ^refs/heads/users/pmuldoon/c++compile ^refs/heads/users/ARM/embedded-binutils-2_26-branch ^refs/heads/users/gentoo/2.27 ^refs/heads/users/gentoo/2.28 ^refs/heads/users/hjl/relax-plt ^refs/heads/users/hjl/pr21964 ^refs/heads/users/hjl/pr21562 ^refs/heads/users/dje/google-7.10 ^refs/heads/users/palves/cxx-breakpoint-improvements ^refs/heads/users/keiths/c++compile-submit ^refs/heads/users/hjl/mmap/write ^refs/heads/users/palves/fix-var-update-for-registers ^refs/heads/users/hjl/cache ^refs/heads/users/ccoutant/gold-record ^refs/heads/users/hjl/relocs ^refs/heads/users/mmetzger/record-goto-mi ^refs/heads/users/palves/cxx-dwarf2read ^refs/heads/users/hjl/indbr ^refs/heads/users/palves/interrupt-while-step-over ^refs/heads/users/hjl/old-lto-mixed ^refs/heads/users/hjl/pr19827/binutils-2_26-branch ^refs/heads/users/hjl/pr19553/binutils-2_26-branch ^refs/heads/users/hjl/pr21903 ^refs/heads/users/hjl/linux/track ^refs/heads/users/palves/function_view ^refs/heads/users/hjl/linux/applied ^refs/heads/users/hjl/mpx/master ^refs/heads/users/palves/cp-linespec-for-keiths ^refs/heads/users/hjl/pr20882 ^refs/heads/users/bheckel/fortran-strides ^refs/heads/users/hjl/plt ^refs/heads/users/pkoning/multi-target ^329d5e7e56f852dcf9956683be4345c165d277db' returned non-zero exit status 128
remote: error: hook declined to update refs/heads/master
To ssh://[email protected]/git/binutils-gdb.git
 ! [remote rejected] HEAD -> master (hook declined)
error: failed to push some refs to 'ssh://[email protected]/git/binutils-gdb.git'

Thanks,
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.