Fix link to github repo in buildinfo.json

This commit is contained in:
Patrick Smith 2018-09-25 11:24:39 -04:00
parent 2bbb859ad8
commit a933a9d71e

View File

@ -44,7 +44,7 @@ COMMIT_MESSAGE_HTML=$(git log -1 --pretty=format:%B | sed -e 's#>#>#g' | sed
# Assemble https based git repo url
GIT_REPO=$(git config --get remote.origin.url | cut -d ':' -f 2)
GIT_URL="https://github.com/${GIT_REPO}"
GIT_URL="https:${GIT_REPO}"
# Drop the trailing .git for generating github links
GITHUB_BASE_URL="${GIT_URL%.git}"
GITHUB_COMMIT_URL="${GITHUB_BASE_URL}/commit/${GIT_SHA}"