mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
Fixes to gotorevision(None)
Up until now, this would do nothing in most cases
This commit is contained in:
parent
9257690f95
commit
c4237fe732
2 changed files with 21 additions and 25 deletions
|
|
@ -121,22 +121,14 @@ def check_repomanifest(app, sdk_path, branch=None):
|
|||
|
||||
if vcs.repotype() == 'git':
|
||||
if branch:
|
||||
vcs.gotorevision('origin/'+branch)
|
||||
else:
|
||||
vcs.gotorevision('origin/master')
|
||||
pass
|
||||
branch = 'origin/'+branch
|
||||
vcs.gotorevision(branch)
|
||||
elif vcs.repotype() == 'git-svn':
|
||||
if branch:
|
||||
vcs.gotorevision(branch)
|
||||
else:
|
||||
vcs.gotorevision(None)
|
||||
vcs.gotorevision(branch)
|
||||
elif vcs.repotype() == 'svn':
|
||||
vcs.gotorevision(None)
|
||||
elif vcs.repotype() == 'hg':
|
||||
if branch:
|
||||
vcs.gotorevision(branch)
|
||||
else:
|
||||
vcs.gotorevision('default')
|
||||
vcs.gotorevision(branch)
|
||||
elif vcs.repotype() == 'bzr':
|
||||
vcs.gotorevision(None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue