Go to file
Chris Allen 7393f6bc41 manifest_xml: Fix empty project list when DOCTYPE is present
When parsing the manifest XML, the code looks for a top
level DOM node named "manifest". However, it doesn't check
that it's an element type node so if there is also an XML
document type declaration node present (which has the same
name as the root element) then it selects the wrong node
and hence you end up with no projects defined at all.

Change-Id: I8d101caffbbc2a06e56136ff21302e3f09cfc96b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390357
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Chris Allen <chris.allen@arm.com>
Commit-Queue: Chris Allen <chris.allen@arm.com>
2023-10-20 18:22:59 +00:00
.github/workflows tests: added python 3.12 2023-10-17 13:58:33 +00:00
docs python-support: update with current status & guidelines 2023-10-14 06:22:53 +00:00
hooks commit-msg: Sync commit-msg from gerrit 3.6.1 2022-07-29 01:29:19 +00:00
man update links from monorail to issuetracker 2023-06-14 21:19:58 +00:00
release isort: format codebase 2023-08-22 18:32:22 +00:00
subcmds delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
tests manifest_xml: Fix empty project list when DOCTYPE is present 2023-10-20 18:22:59 +00:00
.flake8 flake8: exclude venv and .tox folder 2023-08-15 15:46:52 +00:00
.gitattributes Adds additional crlf clobber avoidance. 2016-06-22 08:36:45 +00:00
.gitignore Add parallelism to 'branches' command 2020-12-14 23:35:12 +00:00
.gitreview git-review: add config file 2021-11-15 01:39:36 +00:00
.isort.cfg isort: format codebase 2023-08-22 18:32:22 +00:00
.mailmap Update .mailmap 2020-02-13 04:49:55 +00:00
.project Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pydevproject Leverage the next keyword from python 2.7 2018-12-19 11:06:35 -08:00
color.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
command.py cleanup: leverage yield from in more places 2023-10-20 17:33:03 +00:00
completion.bash bash-completion: complete projects with repo forall 2021-07-27 06:20:52 +00:00
editor.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
error.py gitc: drop support 2023-08-15 22:14:52 +00:00
event_log.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
fetch.py isort: format codebase 2023-08-22 18:32:22 +00:00
git_command.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
git_config.py git_config: GetBoolean should return bool 2023-10-20 16:41:58 +00:00
git_refs.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
git_ssh add license header to a few more files 2019-06-13 13:23:19 -04:00
git_superproject.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
git_trace2_event_log_base.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
git_trace2_event_log.py Log ErrorEvent for failing GitCommands 2023-09-06 18:22:33 +00:00
hooks.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
LICENSE setup.py: add basic packaging files 2019-12-02 04:23:31 +00:00
main.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
manifest_xml.py manifest_xml: Fix empty project list when DOCTYPE is present 2023-10-20 18:22:59 +00:00
MANIFEST.in setup.py: add basic packaging files 2019-12-02 04:23:31 +00:00
pager.py isort: format codebase 2023-08-22 18:32:22 +00:00
platform_utils_win32.py isort: format codebase 2023-08-22 18:32:22 +00:00
platform_utils.py cleanup: leverage yield from in more places 2023-10-20 17:33:03 +00:00
progress.py delete Python 2 (object) compat 2023-10-20 04:51:01 +00:00
project.py project: using --depth results in error when including submanifests 2023-10-20 12:34:34 +00:00
pyproject.toml tests: added python 3.12 2023-10-17 13:58:33 +00:00
README.md update links from monorail to issuetracker 2023-06-14 21:19:58 +00:00
repo repo: drop Python 2 compat logic 2023-10-20 05:19:40 +00:00
repo_logging.py Reset info logs back to print in sync 2023-09-28 19:46:49 +00:00
repo_trace.py isort: format codebase 2023-08-22 18:32:22 +00:00
requirements.json Drop support for Python 3.5 2021-06-03 11:34:17 +00:00
run_tests fix black formatting of standalone programs 2023-09-01 18:08:58 +00:00
run_tests.vpython3 isort: format codebase 2023-08-22 18:32:22 +00:00
setup.py isort: format codebase 2023-08-22 18:32:22 +00:00
ssh.py Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
SUBMITTING_PATCHES.md SUBMITTING_PATCHES: update with commit queue details 2023-05-11 19:27:57 +00:00
tox.ini tests: added python 3.12 2023-10-17 13:58:33 +00:00
wrapper.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00

repo

Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.

Contact

Please use the repo-discuss mailing list or issue tracker for questions.

You can file a new bug report under the "repo" component.

Please do not e-mail individual developers for support. They do not have the bandwidth for it, and often times questions have already been asked on repo-discuss or bugs posted to the issue tracker. So please search those sites first.

Install

Many distros include repo, so you might be able to install from there.

# Debian/Ubuntu.
$ sudo apt-get install repo

# Gentoo.
$ sudo emerge dev-vcs/repo

You can install it manually as well as it's a single script.

$ mkdir -p ~/.bin
$ PATH="${HOME}/.bin:${PATH}"
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo