summaryrefslogtreecommitdiff
path: root/src/oid.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-08-23 12:29:09 -0700
committerBen Straub <bs@github.com>2012-08-25 09:56:20 -0700
commitc9de8611d6a3e77757a714cdf6acf46178b1d622 (patch)
treef0129e6c85be71c6241bd00dcf6305115d2bb4a4 /src/oid.c
parent5fdc41e76591aebdbae3b49440bc2c8b2430718c (diff)
downloadlibgit2-c9de8611d6a3e77757a714cdf6acf46178b1d622.tar.gz
Revparse: GIT_EAMBIGUOUS
Revparse now returns EAMBIGUOUS if the the spec doesn't match any refs/tags, and is <4 characters.
Diffstat (limited to 'src/oid.c')
-rw-r--r--src/oid.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/oid.c b/src/oid.c
index 821442d19..127ad6117 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -24,9 +24,6 @@ int git_oid_fromstrn(git_oid *out, const char *str, size_t length)
size_t p;
int v;
- if (length < 4)
- return oid_error_invalid("input too short");
-
if (length > GIT_OID_HEXSZ)
length = GIT_OID_HEXSZ;