Skip to content

Commit

Permalink
fixing off-by-one error in listing
Browse files Browse the repository at this point in the history
  • Loading branch information
garu committed Dec 30, 2009
1 parent 0e5e493 commit e5e62ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/github
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sub clone :Help(clone a github repository) {
while ( not defined $chosen ) {
print "Available repositories ($repo_count) :\n";
foreach my $id ( 1 .. $repo_count ) {
my $repo = $c->stash->{repositories}->[$id];
my $repo = $c->stash->{repositories}->[$id - 1];
print " $id - " . $repo->{name} . ' (' . $repo->{description} . ') - by ' . $repo->{username} . "\n";
}

Expand Down

0 comments on commit e5e62ef

Please sign in to comment.