1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

No need to checkout to master for Tags

This fixes many occurences of Tags/RM not working since master doesn't exist
on some repos, e.g. com.better.alarm.
This commit is contained in:
Daniel Martí 2013-05-22 17:45:14 +02:00
parent 6bdc532168
commit 642831c78f

View File

@ -51,9 +51,9 @@ def check_tags(app, sdk_path):
# Set up vcs interface and make sure we have the latest code... # Set up vcs interface and make sure we have the latest code...
vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path) vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir, sdk_path)
if app['Repo Type'] == 'git': if app['Repo Type'] == 'git':
vcs.gotorevision('origin/master') vcs.gotorevision(None)
elif app['Repo Type'] == 'git-svn': elif app['Repo Type'] == 'git-svn':
vcs.gotorevision('trunk') vcs.gotorevision(None)
if len(app['builds']) == 0: if len(app['builds']) == 0:
return (None, "Can't use Tags with no builds defined") return (None, "Can't use Tags with no builds defined")