Skip to content

Commit

Permalink
fixed releasebot issues with multiple branches
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Jan 12, 2018
1 parent 2bf31a1 commit 93ceae3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion release
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ NEW="$1"

[ "$NEW" != "" ] || exit 1

PREV=`git tag --sort=creatordate|tail -1`
echo "Creating release $NEW"

NEWBASE=`echo "$NEW"|cut -f1 -d'-'`
PREV=`git tag --sort=creatordate|grep "^$NEWBASE"|tail -1`

############## update Release_notes.txt
NOTES="dist/Release_notes.txt"
Expand Down
5 changes: 2 additions & 3 deletions releasebot
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
git pull

#new commits since last tag?
if ! git describe --exact-match 2>/dev/null; then
BRANCH=`git rev-parse --abbrev-ref HEAD`
BRANCH=`git rev-parse --abbrev-ref HEAD`
if ! git describe --exact-match 2>/dev/null | grep "^$BRANCH"; then
TAG="$BRANCH-`date +%Y%m%d`"
./release "$TAG"
fi

0 comments on commit 93ceae3

Please sign in to comment.