diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-05-22 16:17:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-23 14:29:56 +0900 |
commit | c1da06c6f1a77370341d93d80af027caa6a19a94 (patch) | |
tree | 3fffc240eeecfca3ddec0fe48c7c47678545e39c /refs/ref-cache.c | |
parent | 0a0865b8f168b7195bd15440d15eb0e7817d6526 (diff) | |
download | git-c1da06c6f1a77370341d93d80af027caa6a19a94.tar.gz |
create_ref_entry(): remove `check_name` option
Only one caller was using it, so move the check to that caller.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.c')
-rw-r--r-- | refs/ref-cache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/refs/ref-cache.c b/refs/ref-cache.c index 6b11d9cd12..ec97f3a38a 100644 --- a/refs/ref-cache.c +++ b/refs/ref-cache.c @@ -32,14 +32,10 @@ struct ref_dir *get_ref_dir(struct ref_entry *entry) } struct ref_entry *create_ref_entry(const char *refname, - const struct object_id *oid, int flag, - int check_name) + const struct object_id *oid, int flag) { struct ref_entry *ref; - if (check_name && - check_refname_format(refname, REFNAME_ALLOW_ONELEVEL)) - die("Reference has invalid format: '%s'", refname); FLEX_ALLOC_STR(ref, name, refname); oidcpy(&ref->u.value.oid, oid); oidclr(&ref->u.value.peeled); |