Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Update draft release notes to 1.7.8
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 8210ccc13d210dbf2a6cf08ae368081a5339e6db..04df4d786ecf9fe541b62e89d85f6b0ae684b439 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-871,7
+871,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