git-svn fix: run fetch to actually get new tags and branches

This commit is contained in:
Daniel Martí 2014-02-18 10:34:49 +01:00
parent b9728b2980
commit 3f485e509f

View file

@ -417,7 +417,10 @@ class vcs_gitsvn(vcs):
if p.returncode != 0: if p.returncode != 0:
raise VCSException("Git clean failed") raise VCSException("Git clean failed")
if not self.refreshed: if not self.refreshed:
# Get new commits and tags from repo # Get new commits, branches and tags from repo
p = SilentPopen(['%sgit svn fetch %s' % self.userargs()], cwd=self.local, shell=True)
if p.returncode != 0:
raise VCSException("Git svn fetch failed")
p = SilentPopen(['%sgit svn rebase %s' % self.userargs()], cwd=self.local, shell=True) p = SilentPopen(['%sgit svn rebase %s' % self.userargs()], cwd=self.local, shell=True)
if p.returncode != 0: if p.returncode != 0:
raise VCSException("Git svn rebase failed") raise VCSException("Git svn rebase failed")