aboutsummaryrefslogtreecommitdiff
path: root/bundles
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2014-03-20 11:20:36 +0100
committerMilo Casagrande <milo@ubuntu.com>2014-03-20 11:20:36 +0100
commit76776f2aca7c7e349ae12815d5d01cfe1f57a00c (patch)
tree4461bc210e028bc1b4ee08b768f31a7900f2d7fe /bundles
parent8897831a9e2fa873cbe39b43854c83044b90dd13 (diff)
Default to the provided branch if defined.
Change-Id: I76224b5e23fa026be21683378d19c29cc1a424c0
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/create-bundle.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/create-bundle.py b/bundles/create-bundle.py
index b209088..9632ca8 100755
--- a/bundles/create-bundle.py
+++ b/bundles/create-bundle.py
@@ -127,6 +127,9 @@ def get_repo_branch(repo, branch):
if not branch:
branch = DEFAULT_BRANCH
+ else:
+ # Default to the one passed, it is supposed to exists.
+ branches.append(branch)
default_branches = glob.glob(os.path.join(repo_heads, branch))
for default_branch in default_branches: