/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change check_ref_format() to take a flags argument
[git/git.git]
/
builtin
/
receive-pack.c
diff --git
a/builtin/receive-pack.c
b/builtin/receive-pack.c
index
ae164da
..
0600efa
100644
(file)
--- a/
builtin/receive-pack.c
+++ b/
builtin/receive-pack.c
@@
-356,7
+356,7
@@
static const char *update(struct command *cmd)
struct ref_lock *lock;
/* only refs/... are allowed */
struct ref_lock *lock;
/* only refs/... are allowed */
- if (prefixcmp(name, "refs/") || check_ref
_format(name + 5
)) {
+ if (prefixcmp(name, "refs/") || check_ref
name_format(name + 5, 0
)) {
rp_error("refusing to create funny ref '%s' remotely", name);
return "funny refname";
}
rp_error("refusing to create funny ref '%s' remotely", name);
return "funny refname";
}