/
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]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index
ff5992a
..
143fd97
100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-972,9
+972,9
@@
int strbuf_check_branch_ref(struct strbuf *sb, const char *name)
{
strbuf_branchname(sb, name);
if (name[0] == '-')
- return
CHECK_REF_FORMAT_ERROR
;
+ return
-1
;
strbuf_splice(sb, 0, 0, "refs/heads/", 11);
- return check_ref
_format(sb->buf
);
+ return check_ref
name_format(sb->buf, 0
);
}
/*