fixed dectection

This commit is contained in:
Andreas Preikschat 2014-03-31 20:10:14 +02:00
parent ab4cbfd85e
commit 9d9a8145f6
1 changed files with 2 additions and 3 deletions

View File

@ -141,10 +141,9 @@ def get_repo_name():
if 'push branch' in line:
repo_name = line.replace('push branch: bzr+ssh://bazaar.launchpad.net/', 'lp:')
break
# Check if trunk. Note, bzr info can return both 'push branch' as well as 'checkout of branch'. The later can
# occur before the first. So we do not want to break here to make sure we find any orrucances of
elif 'checkout of branch' in line:
repo_name = line.replace('checkout of branch: bzr+ssh://bazaar.launchpad.net/+branch/', 'lp:')
repo_name = line.replace('checkout of branch: bzr+ssh://bazaar.launchpad.net/', 'lp:')
break
repo_name = repo_name.strip('/')
# Did we find the branch name?