diff --git a/hooks/05-create-changelog-prebuild b/hooks/05-create-changelog-prebuild index 6ca58dc..8ac59ae 100755 --- a/hooks/05-create-changelog-prebuild +++ b/hooks/05-create-changelog-prebuild @@ -8,14 +8,12 @@ fi # Get commits log as changelog -BUILD_BRANCH=$(get_opt build_branch dist/ubuntu/precise/master) BUILD_TAG=$(get_opt build_tag "last") echo "BUILD TAG IS ${BUILD_TAG}" if [[ ${BUILD_TAG} == "last" ]] then - git checkout ${BUILD_BRANCH} tags=$(git tag master -l "release/*"|sort -r) else tagbranch="build-tag-${BUILD_TAG}" @@ -26,8 +24,8 @@ fi if [[ -z ${tags} ]] then - error "No relase tag found, you repo must have a tag like 'release/X.X'" - exit 2 + error "No release tag found, you repo must have a tag like 'release/X.X'" + exit fi touch debian/changelog