From b873215dd8572e8e0a2c6c293b774450ceb24802 Mon Sep 17 00:00:00 2001 From: ksamuel Date: Mon, 31 Aug 2020 16:20:59 +0200 Subject: [PATCH] Changing repo status checking strategy, again --- dodo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dodo.py b/dodo.py index bea040f..3e0a19c 100644 --- a/dodo.py +++ b/dodo.py @@ -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")