summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pyfedpkg/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index c956eec..992ca54 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -278,6 +278,12 @@ def clone(module, user, path=os.getcwd(), branch=None, bare_dir=None):
else:
giturl = ANONGITURL % {'module': module}
+ # do some branch name conversions
+ if branch:
+ remotere = 'f\d\d|el\d|olpc\d'
+ if re.match(remotere, branch):
+ branch = '%s/master' % branch
+
# Create the command
cmd = ['git', 'clone']
# do the clone