Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

sha1-lookup: fix up the assertion message

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information...
commit 1a7b1f6b9c9a129236c66c392877e8697825470f 1 parent 5289bae
Junio C Hamano authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  sha1-lookup.c
2  sha1-lookup.c
@@ -81,7 +81,7 @@ int sha1_pos(const unsigned char *sha1, void *table, size_t nr,
81 81
 				mi = (nr - 1) * (miv - lov) / (hiv - lov);
82 82
 				if (lo <= mi && mi < hi)
83 83
 					break;
84  
-				die("oops");
  84
+				die("BUG: assertion failed in binary search");
85 85
 			}
86 86
 		}
87 87
 		if (18 <= ofs)

0 notes on commit 1a7b1f6

Please sign in to comment.
Something went wrong with that request. Please try again.