Fix link to github repo in buildinfo.json
This commit is contained in:
parent
2bbb859ad8
commit
a933a9d71e
@ -44,7 +44,7 @@ COMMIT_MESSAGE_HTML=$(git log -1 --pretty=format:%B | sed -e 's#>#>#g' | sed
|
|||||||
|
|
||||||
# Assemble https based git repo url
|
# Assemble https based git repo url
|
||||||
GIT_REPO=$(git config --get remote.origin.url | cut -d ':' -f 2)
|
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
|
# Drop the trailing .git for generating github links
|
||||||
GITHUB_BASE_URL="${GIT_URL%.git}"
|
GITHUB_BASE_URL="${GIT_URL%.git}"
|
||||||
GITHUB_COMMIT_URL="${GITHUB_BASE_URL}/commit/${GIT_SHA}"
|
GITHUB_COMMIT_URL="${GITHUB_BASE_URL}/commit/${GIT_SHA}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user