mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Changing repo status checking strategy, again
This commit is contained in:
parent
788cf0118d
commit
b873215dd8
1
dodo.py
1
dodo.py
@ -90,6 +90,7 @@ def task_bump_version():
|
|||||||
if git("branch", "--show-current") != "master":
|
if git("branch", "--show-current") != "master":
|
||||||
sys.exit("You must be on the branch master to do that")
|
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":
|
if git("git", "rev-list", "HEAD...origin/master", "--count") != "0":
|
||||||
sys.exit("Cannot push a new version, you need to pull first")
|
sys.exit("Cannot push a new version, you need to pull first")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user