Closed ghost closed 2 years ago
You can manually edit the path to use the https endpoint instead in the git config.
You can manually edit the path to use the https endpoint instead in the git config.
sankiu
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.
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/
Actually, it should be:
[url "https://gitlab.com/"]
insteadOf = git@gitlab.com:
And that is enough to overcome the GitLab access issues.
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