summaryrefslogtreecommitdiff
path: root/sha1-lookup.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-06 00:48:49 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-06 00:56:27 -0700
commit1a7b1f6b9c9a129236c66c392877e8697825470f (patch)
tree78ec94449d735669a47ee45f7ab7188b3d8e2f4e /sha1-lookup.c
parent5289bae17f24805cc8507129e21d794b0b56264c (diff)
downloadgit-1a7b1f6b9c9a129236c66c392877e8697825470f.tar.gz
sha1-lookup: fix up the assertion message
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-lookup.c')
-rw-r--r--sha1-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-lookup.c b/sha1-lookup.c
index 055dd87dc1..c4dc55d1f5 100644
--- a/sha1-lookup.c
+++ b/sha1-lookup.c
@@ -81,7 +81,7 @@ int sha1_pos(const unsigned char *sha1, void *table, size_t nr,
mi = (nr - 1) * (miv - lov) / (hiv - lov);
if (lo <= mi && mi < hi)
break;
- die("oops");
+ die("BUG: assertion failed in binary search");
}
}
if (18 <= ofs)