summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/project.py b/project.py
index a1249a86..73a97812 100644
--- a/project.py
+++ b/project.py
@@ -1748,6 +1748,7 @@ class Project(object):
1748 cmd.append('--no-tags') 1748 cmd.append('--no-tags')
1749 else: 1749 else:
1750 cmd.append('--tags') 1750 cmd.append('--tags')
1751
1751 cmd.append(str((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*'))) 1752 cmd.append(str((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*')))
1752 elif tag_name is not None: 1753 elif tag_name is not None:
1753 cmd.append('tag') 1754 cmd.append('tag')
@@ -1774,6 +1775,11 @@ class Project(object):
1774 time.sleep(random.randint(30, 45)) 1775 time.sleep(random.randint(30, 45))
1775 1776
1776 if initial: 1777 if initial:
1778 # Ensure that some refs exist. Otherwise, we probably aren't looking
1779 # at a real git repository and may have a bad url.
1780 if not self.bare_ref.all:
1781 ok = False
1782
1777 if alt_dir: 1783 if alt_dir:
1778 if old_packed != '': 1784 if old_packed != '':
1779 _lwrite(packed_refs, old_packed) 1785 _lwrite(packed_refs, old_packed)