Show More
@@ -161,8 +161,15 b' class GitRemote(object):' | |||
|
161 | 161 | repo = self._factory.repo_libgit2(wire) |
|
162 | 162 | |
|
163 | 163 | try: |
|
164 |
|
|
|
164 | has_head = repo.head.name | |
|
165 | if has_head: | |
|
166 | return False | |
|
167 | ||
|
168 | # NOTE(marcink): check again using more expensive method | |
|
169 | return repo.is_empty | |
|
165 | 170 | except Exception: |
|
171 | pass | |
|
172 | ||
|
166 | 173 |
|
|
167 | 174 | |
|
168 | 175 | @reraise_safe_exceptions |
@@ -783,8 +790,6 b' class GitRemote(object):' | |||
|
783 | 790 | |
|
784 | 791 | @reraise_safe_exceptions |
|
785 | 792 | def get_all_commit_ids(self, wire): |
|
786 | if self.is_empty(wire): | |
|
787 | return [] | |
|
788 | 793 | |
|
789 | 794 | cmd = ['rev-list', '--reverse', '--date-order', '--branches', '--tags'] |
|
790 | 795 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now