summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-03-05 13:06:22 -0800
committerRussell Belfer <rb@github.com>2014-03-05 13:06:22 -0800
commit26875825df19d484c24921e355963e75dc0a4476 (patch)
treeb48315f4cf405b1c42d187edba5cfdbba529b692 /src/odb.c
parent13f7ecd7b9c5244441eeaae798c8657d1818ea7f (diff)
downloadlibgit2-26875825df19d484c24921e355963e75dc0a4476.tar.gz
Check short OID len in odb, not in backends
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index d49ee30fd..6f550ddce 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -800,7 +800,6 @@ int git_odb_read_prefix(
if (len < GIT_OID_MINPREFIXLEN)
return git_odb__error_ambiguous("prefix length too short");
-
if (len > GIT_OID_HEXSZ)
len = GIT_OID_HEXSZ;