diff options
author | Conley Owens <cco3@android.com> | 2014-11-10 23:46:10 +0000 |
---|---|---|
committer | Conley Owens <cco3@android.com> | 2014-11-10 23:49:32 +0000 |
commit | 3eb87cec5cae5f43becfe9fd1ff94de855cac08c (patch) | |
tree | 2d1def55cf28077dfb73385fffed502eb996f661 /project.py | |
parent | 5fb8ed217c1f7ddfdaa54bdb8384888998734a84 (diff) | |
download | git-repo-3eb87cec5cae5f43becfe9fd1ff94de855cac08c.tar.gz |
Revert "Check for existence of refs upon initial fetch"
This reverts commit 565480588d2bff4205b437862505e77382189811.
We are reverting this change for 2 reasons:
1) It introduced a bug for users using sync -c with a reference mirror.
2) The fetch specs have recently changed to cause git to properly fail
when we request a non-existent branch of a manifest, removing the need
for this change.
Change-Id: I0f63da9bfb40cf5ffafb7979f1b8c929a738fc7b
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1872,11 +1872,6 @@ class Project(object): | |||
1872 | time.sleep(random.randint(30, 45)) | 1872 | time.sleep(random.randint(30, 45)) |
1873 | 1873 | ||
1874 | if initial: | 1874 | if initial: |
1875 | # Ensure that some refs exist. Otherwise, we probably aren't looking | ||
1876 | # at a real git repository and may have a bad url. | ||
1877 | if not self.bare_ref.all: | ||
1878 | ok = False | ||
1879 | |||
1880 | if alt_dir: | 1875 | if alt_dir: |
1881 | if old_packed != '': | 1876 | if old_packed != '': |
1882 | _lwrite(packed_refs, old_packed) | 1877 | _lwrite(packed_refs, old_packed) |