Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add new @ shortcut for HEAD
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index de2d8eb866062649a0d0f23a77e350bca1a182cd..4e70b3eca037a084fae0eae00386cd040305ce21 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);