mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Better detection of git-svn find-rev failure
This commit is contained in:
parent
9606e6e4a8
commit
6eb2229a3b
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class vcs_gitsvn(vcs):
|
||||||
p = subprocess.Popen(['git', 'svn', 'find-rev', 'r' + rev],
|
p = subprocess.Popen(['git', 'svn', 'find-rev', 'r' + rev],
|
||||||
cwd=self.local, stdout=subprocess.PIPE)
|
cwd=self.local, stdout=subprocess.PIPE)
|
||||||
rev = p.communicate()[0].rstrip()
|
rev = p.communicate()[0].rstrip()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0 or len(rev) == 0:
|
||||||
raise VCSException("Failed to get git treeish from svn rev")
|
raise VCSException("Failed to get git treeish from svn rev")
|
||||||
# Check out the appropriate revision...
|
# Check out the appropriate revision...
|
||||||
if subprocess.call(['git', 'checkout', rev], cwd=self.local) != 0:
|
if subprocess.call(['git', 'checkout', rev], cwd=self.local) != 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue