Skip to content

Commit

Permalink
Merge pull request #170 from alphagov/fix-tagging
Browse files Browse the repository at this point in the history
Fix tagging of versions
  • Loading branch information
quis committed Oct 2, 2015
2 parents 7d2f2d9 + 177a812 commit b687542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages_builder/tag_latest_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ git pull origin master
commit=$(git log master --pretty=oneline --abbrev-commit --no-decorate | grep "Bump version to" | head -n1)
sha=$(echo $commit | cut -d ' ' -f1)
version=v$(cat VERSION.txt)
previous_version=$(git describe --abbrev=0 ${version}^)
changes=$(git log --merges --oneline $previous_version..$sha)
previous_version=$(git describe --abbrev=0)
changes=$(git log --merges --oneline $previous_version..head)
echo Commit:\ \ \ $commit
echo Version:\ \ $version
echo Previous:\ $previous_version
Expand Down

0 comments on commit b687542

Please sign in to comment.