Changing repo status checking strategy, again

This commit is contained in:
ksamuel 2020-08-31 16:20:59 +02:00
parent 788cf0118d
commit b873215dd8
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ def task_bump_version():
if git("branch", "--show-current") != "master":
sys.exit("You must be on the branch master to do that")
git("fetch", "origin", "master")
if git("git", "rev-list", "HEAD...origin/master", "--count") != "0":
sys.exit("Cannot push a new version, you need to pull first")