Browse Source

semver_git_tag push_needed

master 0.2.3
pvincent 5 years ago
parent
commit
cefd13e241
  1. 9
      tools/semver_git_tag

9
tools/semver_git_tag

@ -37,6 +37,15 @@ if [[ $? -ne 0 ]]; then
exit -1
fi
# check if push needed before tagging
push_needed=`git rev-list --branches --not --remotes |wc -l`
if [[ $push_needed -ne 0 ]]; then
echo 'git push needed'
git push
echo 'git push done'
echo '-------------'
fi
# check latest tagged version
LAST_TAG=`git rev-list --tags --max-count=1 2>/dev/null`
if [[ $? -eq 0 ]]; then

Loading…
Cancel
Save