]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
ref_transaction_update(): check refname_is_safe() at a minimum
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 27 Apr 2016 13:54:45 +0000 (15:54 +0200)
committerMichael Haggerty <mhagger@alum.mit.edu>
Mon, 13 Jun 2016 09:23:50 +0000 (11:23 +0200)
commit8a679de6f1a4bd077f828273f75eea46947b5b73
tree6118cd062c55624af049c0acef390a6bd62ad16d
parent8415d24746b97a479fe5aec9845bfc150cda2d14
ref_transaction_update(): check refname_is_safe() at a minimum

If the user has asked that a new value be set for a reference, we use
check_refname_format() to verify that the reference name satisfies all
of the rules. But in other cases, at least check that refname_is_safe().

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
refs.c
t/t1400-update-ref.sh
t/t1430-bad-ref-name.sh