summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/project.py b/project.py
index e501cc26..fdd96182 100644
--- a/project.py
+++ b/project.py
@@ -1817,14 +1817,14 @@ class Project(object):
1817 elif tag_name is not None: 1817 elif tag_name is not None:
1818 spec.append('tag') 1818 spec.append('tag')
1819 spec.append(tag_name) 1819 spec.append(tag_name)
1820 else: 1820
1821 branch = self.revisionExpr 1821 branch = self.revisionExpr
1822 if is_sha1: 1822 if is_sha1:
1823 branch = self.upstream 1823 branch = self.upstream
1824 if branch is not None and branch.strip(): 1824 if branch is not None and branch.strip():
1825 if not branch.startswith('refs/'): 1825 if not branch.startswith('refs/'):
1826 branch = R_HEADS + branch 1826 branch = R_HEADS + branch
1827 spec.append(str((u'+%s:' % branch) + remote.ToLocal(branch))) 1827 spec.append(str((u'+%s:' % branch) + remote.ToLocal(branch)))
1828 cmd.extend(spec) 1828 cmd.extend(spec)
1829 1829
1830 shallowfetch = self.config.GetString('repo.shallowfetch') 1830 shallowfetch = self.config.GetString('repo.shallowfetch')