git.tails.boum.org disallows some characters in refs
Originally created by @anonym on #11531 (Redmine)
It refuses my debian/1%45.1.0-1_deb8u1+tails1
tag (and all of Debian
upstream’s debian/*
tags for icedove
):
$ git push origin debian/1%45.1.0-1_deb8u1+tails1
Counting objects: 1, done.
Writing objects: 100% (1/1), 816 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: FATAL: invalid characters in ref or filename: 'refs/tags/debian/1%45.1.0-1_deb8u1+tails1'
remote:
remote: error: hook declined to update refs/tags/debian/1%45.1.0-1_deb8u1+tails1
To tails@git.tails.boum.org:icedove
! [remote rejected] debian/1%45.1.0-1_deb8u1+tails1 -> debian/1%45.1.0-1_deb8u1+tails1 (hook declined)
error: failed to push some refs to 'tails@git.tails.boum.org:icedove'
That is a legal ref name according to:
git check-ref-format debian/1%45.1.0-1_deb8u1+tails1
What about changing whatever overzealous hook we have to use git check-ref-format
instead of what currently is deployed?