git-repo/tests
Vitalii Dmitriev 449b23b698 manifest_xml: fix url normalization for inits and remotes
Before the change, repo normalizes the urls
with a following format only:

    git@github.com:foo/bar

It doesn't cover the following case:

   <remote name="org" fetch="git@github.com:org/" />
   <project name="somerepo" remote="org" />

Results to:
   error: Cannot fetch somerepo
     from ssh://git@github.com/org/git@github.com:org/somerepo

Current change fixes it by normalizing this format:

    git@github.com:foo

Test: ./run_tests tests/test_manifest_xml.py
Change-Id: I1ad0f5df0d52c0b7229ba4c9a4db4eecb5c1a003
Signed-off-by: Vitalii Dmitriev <vitalii.dmitriev@unikie.com>
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/398337
Commit-Queue: Vitalii Dmitriev <dmit.vitalii@gmail.com>
Tested-by: Vitalii Dmitriev <dmit.vitalii@gmail.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
2023-12-20 07:38:49 +00:00
..
fixtures git_config: Fixed test.gitconfig getting updated when running tests. 2021-09-30 21:45:09 +00:00
conftest.py tests: Set HOME to a temporary directory when running tests. 2023-10-17 15:15:55 +00:00
test_editor.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_error.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_git_command.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_config.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_superproject.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_git_trace2_event_log.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_hooks.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_manifest_xml.py manifest_xml: fix url normalization for inits and remotes 2023-12-20 07:38:49 +00:00
test_platform_utils.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_project.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
test_repo_logging.py main: Use repo logger 2023-09-18 20:06:30 +00:00
test_repo_trace.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_ssh.py Parse OpenSSH versions with no SSH_EXTRAVERSION 2023-05-24 17:33:08 +00:00
test_subcmds_init.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_subcmds_sync.py sync: Fix partial sync false positive 2023-11-30 22:36:41 +00:00
test_subcmds_upload.py isort: format codebase 2023-08-22 18:32:22 +00:00
test_subcmds.py tests: do not allow underscores in cli options 2023-04-19 02:53:37 +00:00
test_update_manpages.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
test_wrapper.py cleanup: delete redundant "r" open mode 2023-10-21 00:55:33 +00:00