Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
resolve_ref(): emit warnings for improperly-formatted references
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 3bb652591bb0ee53f2c4d7aed2c32dc480f6e5ae..574d2b61813335045773a5515b8eaf2f44788a6a 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-882,7
+882,7
@@
static int parse_branchname_arg(int argc, const char **argv,
new->name = arg;
setup_branch_path(new);
- if (
check_ref_format(new->path) == CHECK_REF_FORMAT_OK
&&
+ if (
!check_refname_format(new->path, 0)
&&
resolve_ref(new->path, branch_rev, 1, NULL))
hashcpy(rev, branch_rev);
else