Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Use relative path for submodules #15

Description

@jim-bcom

Currently, committed URLs are HTTPS.

This requires the use of a token and frequent use of credentials.

SSH URLs allows a more convenient workflow.

We could convert all URLs to ssh instead, but then it becomes
inconsistent if someone clones SolAR in HTTPS (e.g. for read-only
purpose), and don't want to configure SSH keys.

And currently, if SolAR is cloned using SSH, then submitting changes to submodules may require tedious login/password authentication.

The solution can to use relative path, as described here:

https://www.damirscorner.com/blog/posts/20210423-ChangingUrlsOfGitSubmodules.html

This way, the submodule will be fetched with whatever method used
to clone SolAR.

This may lead to SSHerrors when git submodule foreach is used with
commands demanding a connection to the server (fetch, pull, ...).

A solution is to increase 'MaxStartups' in sshd config as described here:
https://docs.gitlab.com/ee/topics/git/troubleshooting_git.html#ssh_exchange_identification-error

(sshd needs to be restarted, or the machine rebooted)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions