Skip to content

Commit

Permalink
Simplify tag-search code even more
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed May 19, 2017
1 parent 2354cbd commit 2aa6bc0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/contributors.pl6
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ sub get-last-release-date-for ($rakudo-repo) {
# .first's regex gives us the last non-point release
# and we need the .slurps to silence "fatal write reset by peer" errors
my $tag = run(
:out, :cwd($rakudo-repo),
<git for-each-ref --sort=taggerdate --format=%(refname) refs/tags>
).out.slurp(:close).lines.reverse
.first(/^ 'refs/tags/' \d**4 '.' \d**2 $/).substr('refs/tags/'.chars)
:out, :cwd($rakudo-repo),
<git for-each-ref --sort=taggerdate --format=%(tag) refs/tags>
).out.slurp(:close).lines.reverse.first: *.chars == chars '20XX.XX'
or die "Failed to find a release tag for latest release";

Date.new: Instant.from-posix: run(
Expand Down

0 comments on commit 2aa6bc0

Please sign in to comment.