Skip to content
Snippets Groups Projects
Commit ab15e42f authored by Chirayu Desai's avatar Chirayu Desai Committed by Mike Frysinger
Browse files

Do not try to fetch default revision for mirrors always

* Mirrors may contain multiple projects, some of which may not
  always contain the default revision.
* Only fetch the default revision explicitly if
  '--current-branch' is set.
* Fixes breakage casued by
  commit 6856f984
  "Fix repo mirror with --current-branch"

Bug: https://crbug.com/gerrit/12274
Change-Id: Iaafabe2992f76f3644b841f24245d3e19c9515a9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253093


Reviewed-by: default avatarKuang-che Wu <kcwu@chromium.org>
Reviewed-by: default avatarMike Frysinger <vapier@google.com>
Tested-by: default avatarChirayu Desai <chirayudesai1@gmail.com>
(cherry picked from commit f7b64e33)
parent 75c02fe4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment