summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-29 14:25:04 -0400
committerGitHub <noreply@github.com>2020-07-29 14:25:04 -0400
commit77fb3d2c95f6f8b4ec7b679985c90c8d56f6c1de (patch)
treebf04b5d5f9a7827e5ecbf8dbb7e54220dd226baa /contrib
parent7f38774ee7758e56cf31e87c81ae0bc9208d0ede (diff)
parent382af0978458b7000654284231984dc42edda825 (diff)
downloadpodman-77fb3d2c95f6f8b4ec7b679985c90c8d56f6c1de.tar.gz
podman-77fb3d2c95f6f8b4ec7b679985c90c8d56f6c1de.tar.bz2
podman-77fb3d2c95f6f8b4ec7b679985c90c8d56f6c1de.zip
Merge pull request #7142 from edsantiago/logformat_fix_gitcommit
logformatter: more libpod-podman fallout
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cirrus/logformatter6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter
index b56a829c5..f97638b6f 100755
--- a/contrib/cirrus/logformatter
+++ b/contrib/cirrus/logformatter
@@ -208,13 +208,13 @@ END_HTML
}
# Try to identify the git commit we're working with...
- if ($line =~ m!libpod/define.gitCommit=([0-9a-f]+)!) {
+ if ($line =~ m!/define.gitCommit=([0-9a-f]+)!) {
$git_commit = $1;
}
# ...so we can link to specific lines in source files
if ($git_commit) {
- # 1 12 3 34 4 5 526 6
- $line =~ s{^(.*)(\/(containers\/libpod)(\/\S+):(\d+))(.*)$}
+ # 1 12 3 34 4 5 526 6
+ $line =~ s{^(.*)(\/(containers\/[^/]+)(\/\S+):(\d+))(.*)$}
{$1<a class="codelink" href='https://github.com/$3/blob/$git_commit$4#L$5'>$2</a>$6};
}