Fix changelog url generation

This commit is contained in:
Ismo Vuorinen
2016-08-11 07:29:56 +03:00
parent 1917e19ea9
commit bf8762497b
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
- Take account diffs in bitbucket and github changelog urls
- Reverse commit message list
[Full changelog](https///github.com/superhelio/tools/compare/0.1.2...0.1.3)
[Full changelog](https://github.com/superhelio/tools/compare/0.1.2...0.1.3)
## 0.1.2 (2016-08-10)

View File

@@ -27,7 +27,7 @@ LATEST_HASH=$(git log --pretty=format:'%h' -n 1)
# Guess our remote url from remote.origin.url. Used to create Changelog link.
# You can change this to your project url, but detection should cover 99%.
PROJECT_URL=$(git config --get remote.origin.url | sed 's/\.git//' | sed 's/\:/\//' | sed 's/git@/https\:\/\//')
PROJECT_URL=$(git config --get remote.origin.url | sed 's/\.git//' | sed 's/\:/\//' | sed 's/git@/https\:\/\//' | sed 's/\/\/\//\:\/\//')
# current Git branch
BRANCH_CURRENT=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')