Skip to content

Commit

Permalink
[tools/contributors.pl] avoid infinite recursion, general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jul 28, 2010
1 parent 8049d92 commit 7e8134c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/contributors.pl
Expand Up @@ -9,7 +9,7 @@

my %contrib;

my $last_release = release_date_of_prev_month();
my $last_release = shift // release_date_of_prev_month();
open my $c, '-|', 'git', 'log', "--since=$last_release", '--pretty=format:%an|%cn|%s'
or die "Can't open pipe to git log: $!";
binmode $c, ':encoding(UTF-8)';
Expand All @@ -23,7 +23,7 @@
while ($msg =~ /([^\s()]+)\+\+/g) {
$contrib{nick_to_name($1)}++;
}
while ($msg =~ /(courtesy by:?)\s*(\S.*)/i) {
while ($msg =~ /courtesy of:?\s*(\S.*)/gi) {
$contrib{nick_to_name($1)}++;
}
}
Expand Down Expand Up @@ -69,7 +69,6 @@ sub nick_to_name_from_CREDITS {
}
}
close $f;
use Data::Dumper; $Data::Dumper::Sortkeys = 1; print Dumper \%nicks;
return \%nicks;
}

Expand Down

0 comments on commit 7e8134c

Please sign in to comment.