From: Michael Haggerty Date: Thu, 15 Sep 2011 21:10:30 +0000 (+0200) Subject: Change check_refname_format() to reject unnormalized refnames X-Git-Tag: v1.7.8-rc0~107^2~13 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a40e6fb67a4aed2d5ffde5792bf7f1996d9666e1?ds=sidebyside;hp=a40e6fb67a4aed2d5ffde5792bf7f1996d9666e1 Change check_refname_format() to reject unnormalized refnames Since much of the infrastructure does not work correctly with unnormalized refnames, change check_refname_format() to reject them. Similarly, change "git check-ref-format" to reject unnormalized refnames by default. But add an option --normalize, which causes "git check-ref-format" to normalize the refname before checking its format, and print the normalized refname. This is exactly the behavior of the old --print option, which is retained but deprecated. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---