Re: [PATCH 2/2] symbolic-ref: check format of given refname

2012-07-16 Thread Junio C Hamano
Michael Schubert writes: > Currently, it's possible to update HEAD with a nonsense reference since > no strict validation ist performed. Example: > > $ git symbolic-ref HEAD 'refs/heads/master > > > > > > ' > > Fix this by checking the given reference with check_refname_format()

Re: [PATCH 2/2] symbolic-ref: check format of given refname

2012-07-16 Thread Michael Haggerty
On 07/16/2012 02:13 PM, Michael Schubert wrote: Currently, it's possible to update HEAD with a nonsense reference since no strict validation ist performed. Example: $ git symbolic-ref HEAD 'refs/heads/master > > > ' Fix this by checking the given reference with check_refn

[PATCH 2/2] symbolic-ref: check format of given refname

2012-07-16 Thread Michael Schubert
Currently, it's possible to update HEAD with a nonsense reference since no strict validation ist performed. Example: $ git symbolic-ref HEAD 'refs/heads/master > > > ' Fix this by checking the given reference with check_refname_format(). Signed-off-by: Michael Schubert ---