Skip to content

Commit 2896d5d

Browse files
committed
Remove the invalid '.git' from the commit links
1 parent d080f1f commit 2896d5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xbin/Releasable.raku

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ multi method irc-to-me($msg where /^ :i \s*
219219
my $descs = run :out, :cwd($CONFIG<projects><rakudo-moar><repo-path>), git, show,
220220
--format=%s,
221221
--abbrev=$SHA-LENGTH, --quiet, |%stats<unlogged>;
222+
my $repo = $CONFIG<projects><rakudo-moar><repo-origin>.subst(/ .git $/, '');
222223
my $links = run :out, :cwd($CONFIG<projects><rakudo-moar><repo-path>), git, show,
223-
--format=[<a href=" ~ $CONFIG<projects><rakudo-moar><repo-origin> ~ /commit/%H">%h</a>],
224+
--format=[<a href=" ~ $repo ~ /commit/%H">%h</a>],
224225
--abbrev=$SHA-LENGTH, --quiet, |%stats<unlogged>;
225226
my $unreviewed = join \n, ($descs.out.lines Z $links.out.lines).map:
226227
{ + ~ html-escape(.[0]) ~ ~ .[1]};

0 commit comments

Comments
 (0)