From 8ce3793ff60f6918117aff81dcb97c2631399d91 Mon Sep 17 00:00:00 2001 From: ksamuel Date: Mon, 31 Aug 2020 16:30:05 +0200 Subject: [PATCH] Changing repo status checking strategy, again, again --- dodo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dodo.py b/dodo.py index 3e0a19c..9fecf6a 100644 --- a/dodo.py +++ b/dodo.py @@ -91,7 +91,7 @@ def task_bump_version(): 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("rev-parse", "@{u}") != git("merge-base", "@", "@{u}"): sys.exit("Cannot push a new version, you need to pull first") git_status = git("status", "--porcelain=1").split("\n")