From e35a1093cd8b659ab5fd187056c3867a5ce3819b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 30 Oct 2013 16:53:12 +0100 Subject: [PATCH] Fix git-svn find-rev, also search for svn revisions after HEAD --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 111e6643..e6cf5c85 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -262,7 +262,7 @@ class vcs_gitsvn(vcs): else: # No tag found, normal svn rev translation # 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) git_rev = p.communicate()[0].rstrip() if p.returncode != 0 or len(git_rev) == 0: