1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Fix git-svn find-rev, also search for svn revisions after HEAD

This commit is contained in:
Daniel Martí 2013-10-30 16:53:12 +01:00
parent c1020ca38f
commit e35a1093cd

View File

@ -262,7 +262,7 @@ class vcs_gitsvn(vcs):
else: else:
# No tag found, normal svn rev translation # No tag found, normal svn rev translation
# Translate svn rev into git format # Translate svn rev into git format
p = subprocess.Popen(['git', 'svn', 'find-rev', 'r' + rev], p = subprocess.Popen(['git', 'svn', 'find-rev', 'r' + rev, '--before'],
cwd=self.local, stdout=subprocess.PIPE) cwd=self.local, stdout=subprocess.PIPE)
git_rev = p.communicate()[0].rstrip() git_rev = p.communicate()[0].rstrip()
if p.returncode != 0 or len(git_rev) == 0: if p.returncode != 0 or len(git_rev) == 0: