From 5dcb0d407ec1935d42a951938160cd639658f8fc Mon Sep 17 00:00:00 2001 From: ksamuel Date: Mon, 31 Aug 2020 16:13:57 +0200 Subject: [PATCH] Changing repo status checking strategy --- dodo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dodo.py b/dodo.py index 5198fb2..bea040f 100644 --- a/dodo.py +++ b/dodo.py @@ -90,7 +90,7 @@ def task_bump_version(): if git("branch", "--show-current") != "master": sys.exit("You must be on the branch master to do that") - if git("fetch", "origin", "master", "--dry-run"): + if git("git", "rev-list", "HEAD...origin/master", "--count") != "0": sys.exit("Cannot push a new version, you need to pull first") git_status = git("status", "--porcelain=1").split("\n")