aboutsummaryrefslogtreecommitdiff
path: root/show-branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-23 01:18:42 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-23 01:19:48 -0700
commit79778e4696502884cdf2b12348ad7300b64fcf6e (patch)
tree56a7d44ab3ff7c8ed8df6ab801fc02bb2c7d39df /show-branch.c
parenta935c3972749095e7ea6c341e539a94de705ecfd (diff)
downloadgit-79778e4696502884cdf2b12348ad7300b64fcf6e.tar.gz
git-79778e4696502884cdf2b12348ad7300b64fcf6e.tar.xz
git-show-branch: Fix off-by-one error.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'show-branch.c')
-rw-r--r--show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-branch.c b/show-branch.c
index 8429c171c..ed83645e1 100644
--- a/show-branch.c
+++ b/show-branch.c
@@ -247,7 +247,7 @@ static int append_ref(const char *refname, const unsigned char *sha1)
struct commit *commit = lookup_commit_reference_gently(sha1, 1);
if (!commit)
return 0;
- if (MAX_REVS < ref_name_cnt) {
+ if (MAX_REVS <= ref_name_cnt) {
fprintf(stderr, "warning: ignoring %s; "
"cannot handle more than %d refs",
refname, MAX_REVS);