Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
send-pack: tighten checks for remote names
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index 96ea8b6907b1e4be9c7b8575ff7e4a36f5a7a5f8..e56abb8585130a284b5f597cc8388c015b8e66d5 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-534,7
+534,7
@@
int check_ref_format(const char *ref)
level++;
if (!ch) {
if (level < 2)
- return -
1
; /* at least of form "heads/blah" */
+ return -
2
; /* at least of form "heads/blah" */
return 0;
}
}