Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-branch.c b/show-branch.c
index 8429c171cf..ed83645e16 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);