diff options
| author | Junio C Hamano <junkio@cox.net> | 2005-10-23 01:57:42 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2005-10-23 01:57:42 -0700 |
| commit | 02b54b3dfd5c1aa039acd73b5a1c77f382c506b3 (patch) | |
| tree | 81163461d13961aeeb5642fae2ad4ccad894bec1 | |
| parent | Merge branch 'fixes' (diff) | |
| parent | git-show-branch: Fix off-by-one error. (diff) | |
| download | git-02b54b3dfd5c1aa039acd73b5a1c77f382c506b3.tar.gz git-02b54b3dfd5c1aa039acd73b5a1c77f382c506b3.zip | |
Merge branch 'fixes'
| -rw-r--r-- | show-branch.c | 2 |
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); |
