git-show-branch: Fix off-by-one error.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 23, 2005 at 01:18 UTC
79778e4696502884cdf2b12348ad7300b64fcf6e
1 file changed
+1
-1
show-branch.c
+1
-1
@@ -247,7 +247,7 @@ static int append_ref(const char *refname, const unsigned char *sha1)
247
struct commit *commit = lookup_commit_reference_gently(sha1, 1);
248
if (!commit)
249
return 0;
250
- if (MAX_REVS < ref_name_cnt) {
250
+ if (MAX_REVS <= ref_name_cnt) {
251
fprintf(stderr, "warning: ignoring %s; "
252
"cannot handle more than %d refs",
253
refname, MAX_REVS);