Divested-Mobile / DivestOS-Build

Everything needed to build DivestOS, a more private and more secure aftermarket mobile operating system.
https://divestos.org/index.php?page=build
Other
219 stars 31 forks source link

Failed trying to do a git submodule update #48

Closed ghost closed 2 years ago

ghost commented 2 years ago

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 commented 2 years ago

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

ghost commented 2 years ago

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

sankiu

mmvanheusden commented 2 years ago

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 commented 2 years ago

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/
ghost commented 1 year ago

Actually, it should be:

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

And that is enough to overcome the GitLab access issues.