aboutsummaryrefslogtreecommitdiffstats
path: root/prepare_coin_sources.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2017-04-27 11:27:10 +0300
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-04-27 09:01:55 +0000
commit898620ed8b4df90f7f8d8d8284937a11658e2fa7 (patch)
tree0cc636fe59985ebc6e79f3057b4db71185410157 /prepare_coin_sources.py
parentb5a132d8db337d7d0e28b85c7fa4fee815bf8ed2 (diff)
Prepare_coin_soures: Fix branch detection
Change-Id: Id9a183027a2d5ed379a125ab6630e27a1808cacd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'prepare_coin_sources.py')
-rw-r--r--prepare_coin_sources.py2
1 files changed, 1 insertions, 1 deletions
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: