Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ls-remote doc: rewrite <repository> paragraph
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index d17931a8bcd5322ab95f92094a009433f14d250a..42a7e17f6bdf6f03f56a012c87c137b80452ea17 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-72,6
+72,10
@@
int check_refname_format(const char *refname, int flags)
{
int component_len, component_count = 0;
+ if (!strcmp(refname, "@"))
+ /* Refname is a single character '@'. */
+ return -1;
+
while (1) {
/* We are at the start of a path component. */
component_len = check_refname_component(refname, flags);