summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-02-28 22:03:04 -0500
committerMike Frysinger <vapier@google.com>2021-03-01 15:57:17 +0000
commit31fabeed54f3cbf9495e559dce60f58e126f58d5 (patch)
tree92788d850b7243dc7d25227499377ea53b36505c /error.py
parent76844ba2926b53ed56f2275365a6518d11310b95 (diff)
downloadgit-repo-31fabeed54f3cbf9495e559dce60f58e126f58d5.tar.gz
download: handle shared projects a bit better
If a manifest checksout a project multiple times, repo download isn't able to accurately pick the right project. We were just picking the first result which could be a bit random for the user. If we hit that situation, check if the cwd is one of the projects, and if it isn't, we emit an error and tell the user it's an ambiguous request. Bug: https://crbug.com/gerrit/13070 Change-Id: Id1059b81330229126b48c7312569b37504808383 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/298702 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'error.py')
0 files changed, 0 insertions, 0 deletions