Skip to content

Comments

Move submodules to relative paths#934

Merged
pljones merged 1 commit intojamulussoftware:masterfrom
pljones:feature/move-submodules-to-ssh
Feb 10, 2021
Merged

Move submodules to relative paths#934
pljones merged 1 commit intojamulussoftware:masterfrom
pljones:feature/move-submodules-to-ssh

Conversation

@pljones
Copy link
Collaborator

@pljones pljones commented Jan 31, 2021

No description provided.

Copy link
Member

@ann0see ann0see left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me.

Copy link
Member

@hoffie hoffie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if relevant, but this could make it a bit harder to use for anonymous Github users (i.e. Jamulus repo cloned via http):

Before this PR:

$ git clone https://github.com/jamulussoftware/jamulus.git && cd jamulus
[...]
$ git submodule init && git submodule update
Submodule 'libs/oboe' (https://github.com/google/oboe.git) registered for path 'libs/oboe'
[...]
Cloning into '/tmp/jamulus/libs/oboe'...
[...]
Submodule path 'libs/oboe': checked out '6c6bff4c5a67b5da3067dc8b1480c2e310d81a2e'
[...]

After this PR:

$ git clone https://github.com/jamulussoftware/jamulus.git && cd jamulus
[...]

$ git fetch origin refs/pull/934/head:pr934 && git checkout pr934
[...]
Switched to branch 'pr934'

$ git submodule init && git submodule update
Submodule 'libs/oboe' ([email protected]:google/oboe.git) registered for path 'libs/oboe'
[...]
Cloning into '/tmp/jamulus/libs/oboe'...
Enter passphrase for key '...:  # would break if I hadn't set up ssh for github.com

Someone StackOverflow suggests using relative paths (which seem to be considered relative to origin, not the file system) and this seems to work in a quick test.

@pljones
Copy link
Collaborator Author

pljones commented Feb 1, 2021

Github are removing https clone access "soon". I expect it's so they can ensure they collect everyone's email address - i.e. you have to register to download source.

@pljones pljones force-pushed the feature/move-submodules-to-ssh branch from 16dbe7d to 2d2391e Compare February 7, 2021 09:02
@pljones pljones changed the title Move submodules to git ssh protocol Move submodules to relative paths Feb 7, 2021
@pljones
Copy link
Collaborator Author

pljones commented Feb 7, 2021

OK, had time to check this out and moved to relative paths as suggested. Thanks!

@pljones pljones merged commit a92db0e into jamulussoftware:master Feb 10, 2021
@pljones pljones deleted the feature/move-submodules-to-ssh branch February 10, 2021 20:00
hoffie added a commit to hoffie/jamulus that referenced this pull request Feb 12, 2021
The relative paths in .gitmodules contained a stray github.com/
path component which broke submodule resolution.

Got broken in jamulussoftware#934
Fixes jamulussoftware#984

Signed-off-by: Christian Hoffmann <[email protected]>
@hoffie hoffie mentioned this pull request Feb 12, 2021
@pljones pljones added this to the Release 3.7.0 milestone Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

3 participants