Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed trying to do a git submodule update #48

Closed
ghost opened this issue Feb 8, 2022 · 5 comments
Closed

Failed trying to do a git submodule update #48

ghost opened this issue Feb 8, 2022 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Feb 8, 2022

Please make sure you have the correct access permissions
and that the repository exists.
fatal: cloning 'git@gitlab.com:divested-mobile/kernel_patches.git' on '/home/r1413/DivestOS/Patches/Linux' failed

And that with all the submodules

@SkewedZeppelin
Copy link
Member

SkewedZeppelin commented Feb 9, 2022 via email

@ghost
Copy link
Author

ghost commented Feb 9, 2022

You can manually edit the path to use the https endpoint instead in the git config.

sankiu

@ghost ghost closed this as completed Feb 9, 2022
@SkewedZeppelin SkewedZeppelin added the documentation Improvements or additions to documentation label Feb 17, 2022
@mmvanheusden
Copy link

mmvanheusden commented Feb 17, 2022

enable "show hidden folders" and open the /.git/config file.

make it look like this:

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = https://gitlab.com/divested-mobile/divestos-build
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[submodule "Patches/Linux"]
	active = true
	url = https://gitlab.com/divested-mobile/kernel_patches
[submodule "Patches/DivestOS_Wallpapers"]
	active = true
	url = https://gitlab.com/divested-mobile/wallpapers
[submodule "PrebuiltApps"]
	active = true
	url = https://gitlab.com/divested-mobile/prebuilt_apps

and then git submodule update --init --recursive will work.

@SkewedZeppelin
Copy link
Member

Alternatively something like this in ~/.gitconfig

[url "ssh://git@github.com/"]
        pushInsteadOf = https://github.com/
[url "https://github.com/"]
        insteadOf = git://github.com/
[url "https://github.com/"]
        insteadOf = ssh://git@github.com/

@wsdfhjxc
Copy link

Actually, it should be:

[url "https://gitlab.com/"]
    insteadOf = git@gitlab.com:

And that is enough to overcome the GitLab access issues.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Development

No branches or pull requests

3 participants