object.c
10.7 KB
-
Revert "object: correct the expected ID size in prefix lookup" · 3d9ef2dc
This reverts commit 969d4b70. This was a fluke from Coverity. The length to all the APIs in the library is supposed to be passed in as nibbles, not bytes. Passing it as bytes would prevent us from parsing uneven-sized SHA1 strings. Also, the rest of the library was still using nibbles (including revparse and the odb_prefix APIs), so this change was seriously breaking things in unexpected ways. ^^
Vicent Marti committed