Commit ec5b1589 by Vicent Martí

Merge pull request #373 from carlosmn/fancy-branchname

Fix the reference character check for Unicode
parents 3a97bff3 50a8fd03
...@@ -1647,7 +1647,7 @@ void git_repository__refcache_free(git_refcache *refs) ...@@ -1647,7 +1647,7 @@ void git_repository__refcache_free(git_refcache *refs)
*****************************************/ *****************************************/
static int check_valid_ref_char(char ch) static int check_valid_ref_char(char ch)
{ {
if (ch <= ' ') if ((unsigned) ch <= ' ')
return GIT_ERROR; return GIT_ERROR;
switch (ch) { switch (ch) {
...@@ -1752,4 +1752,4 @@ int git_reference__normalize_name(char *buffer_out, size_t out_size, const char ...@@ -1752,4 +1752,4 @@ int git_reference__normalize_name(char *buffer_out, size_t out_size, const char
int git_reference__normalize_name_oid(char *buffer_out, size_t out_size, const char *name) int git_reference__normalize_name_oid(char *buffer_out, size_t out_size, const char *name)
{ {
return normalize_name(buffer_out, out_size, name, 1); return normalize_name(buffer_out, out_size, name, 1);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment