From 898620ed8b4df90f7f8d8d8284937a11658e2fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simo=20F=C3=A4lt?= Date: Thu, 27 Apr 2017 11:27:10 +0300 Subject: Prepare_coin_soures: Fix branch detection Change-Id: Id9a183027a2d5ed379a125ab6630e27a1808cacd Reviewed-by: Friedemann Kleint --- prepare_coin_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepare_coin_sources.py b/prepare_coin_sources.py index 8f71a52cb..3445ddfe6 100644 --- a/prepare_coin_sources.py +++ b/prepare_coin_sources.py @@ -109,7 +109,7 @@ def prepare_sources(): os.chdir(module_dir) #Make sure the branch exists, if not use dev _branch = SUBMODULE_BRANCH - git_list_branch_cmd = ["git", "branch", "--list", _branch] + git_list_branch_cmd = ["git", "ls-remote", "origin", "refs/heads/" + _branch] shell = (sys.platform == "win32") result = Popen(git_list_branch_cmd, stdout=PIPE, shell=shell) if len(result.communicate()[0].split())==0: -- cgit v1.2.3