From: Daniel Martí Date: Thu, 26 Jun 2014 10:41:50 +0000 (+0200) Subject: Error if UCM:Tags is used with git-svn without tags set up X-Git-Tag: 0.2~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4e153cc60dffcba7319208359884848d220bc6a9;p=fdroidserver.git Error if UCM:Tags is used with git-svn without tags set up --- diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 83604f6f..7ce14575 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -102,6 +102,9 @@ def check_tags(app, pattern): if repotype not in ('git', 'git-svn', 'hg', 'bzr'): return (None, 'Tags update mode only works for git, hg, bzr and git-svn repositories currently', None) + if repotype == 'git-svn' and ';' not in app['Repo']: + return (None, 'Tags update mode used in git-svn, but the repo was not set up with tags', None) + # Set up vcs interface and make sure we have the latest code... vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir)