diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-08-14 12:28:01 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-08-14 12:28:01 +0400 |
commit | 67591c8cd8d55e6f3218f1a734385c845459e1ff (patch) | |
tree | efd5a6d78aab89b2be399216668cfcf886e380cf /src/pack.c | |
parent | 2af9bcb2dbb47adafa7eecbf41ff113da7fa9d1b (diff) |
sha1_lookup: do not use the "experimental" lookup mode
Diffstat (limited to 'src/pack.c')
-rw-r--r-- | src/pack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c index d7e6a1e94..e7fb9f1ae 100644 --- a/src/pack.c +++ b/src/pack.c @@ -1110,8 +1110,11 @@ static int pack_entry_find_offset( short_oid->id[0], short_oid->id[1], short_oid->id[2], lo, hi, p->num_objects); #endif - /* Use git.git lookup code */ +#ifdef GIT_USE_LOOKUP pos = sha1_entry_pos(index, stride, 0, lo, hi, p->num_objects, short_oid->id); +#else + pos = sha1_position(index, stride, lo, hi, short_oid->id); +#endif if (pos >= 0) { /* An object matching exactly the oid was found */ |