Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Permissions issue when running git clone. #2

Closed
AnthonyAndroulakis opened this issue Feb 10, 2023 · 1 comment
Closed

Permissions issue when running git clone. #2

AnthonyAndroulakis opened this issue Feb 10, 2023 · 1 comment

Comments

@AnthonyAndroulakis
Copy link

AnthonyAndroulakis commented Feb 10, 2023

Describe the bug
When git cloning the repository, 2 permissions issues come up.
When the repository is cloned (ie when running git clone --recurse-submodules git@github.com:niivue/niivue-desktop.git), the following logs are printed:

Cloning into 'niivue-desktop'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

If, instead, a modified version of the command is used to git clone (ie git clone --recurse-submodules https://github.com/niivue/niivue-desktop.git, the 2nd issue of cloning the submodule shows up with the following log:

Cloning into 'niivue-desktop'...
remote: Enumerating objects: 87, done.
remote: Counting objects: 100% (87/87), done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 87 (delta 36), reused 73 (delta 23), pack-reused 0
Receiving objects: 100% (87/87), 5.93 MiB | 12.60 MiB/s, done.
Resolving deltas: 100% (36/36), done.
Submodule 'src/UI/src/niivue' (git@github.com:niivue/niivue.git) registered for path 'src/UI/src/niivue'
Cloning into './niivue-desktop/src/UI/src/niivue'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:niivue/niivue.git' into submodule path './niivue-desktop/src/UI/src/niivue' failed
Failed to clone 'src/UI/src/niivue'. Retry scheduled
Cloning into './niivue-desktop/src/UI/src/niivue'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:niivue/niivue.git' into submodule path './niivue-desktop/src/UI/src/niivue' failed
Failed to clone 'src/UI/src/niivue' a second time, aborting

To Reproduce

  1. Run git clone --recurse-submodules git@github.com:niivue/niivue-desktop.git to see the 1st permissions error
  2. Run git clone --recurse-submodules https://github.com/niivue/niivue-desktop.git to see the 2nd permissions error

Expected behavior
niivue-desktop should be git cloned successfully without permission errors.

An example installation log should look like:

Cloning into 'niivue-desktop'...
remote: Enumerating objects: 93, done.
remote: Counting objects: 100% (93/93), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 93 (delta 39), reused 71 (delta 23), pack-reused 0
Receiving objects: 100% (93/93), 5.93 MiB | 10.14 MiB/s, done.
Resolving deltas: 100% (39/39), done.
Submodule 'src/UI/src/niivue' (https://github.com/niivue/niivue.git) registered for path 'src/UI/src/niivue'
Cloning into './niivue-desktop/src/UI/src/niivue'...
remote: Enumerating objects: 10646, done.        
remote: Counting objects: 100% (1750/1750), done.        
remote: Compressing objects: 100% (553/553), done.        
remote: Total 10646 (delta 1274), reused 1597 (delta 1194), pack-reused 8896        
Receiving objects: 100% (10646/10646), 212.80 MiB | 13.02 MiB/s, done.
Resolving deltas: 100% (7736/7736), done.
Submodule path 'src/UI/src/niivue': checked out '21e10d700d60ea794d199b58f411d09cd85aebba'
@AnthonyAndroulakis
Copy link
Author

Closed. This was actually an issue on my end (I did not set up git correctly).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant