diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pyfedpkg/__init__.py | 6 |
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 |