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

Setting git config to use ssh instead of https breaks cloning from public repositories #31

Open
Pi-George opened this issue Feb 7, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Pi-George
Copy link
Contributor

Pi-George commented Feb 7, 2022

This line in git clone shallow:

git config --global url."ssh://[email protected]".insteadOf "https://github.com" || true

Is causing composer install to fail with:

[RuntimeException]                                                                                           
  Failed to clone https://github.com/Pi-George/laminas-file.git via https, ssh protocols, aborting.            
                                                                                                               
  - https://github.com/Pi-George/laminas-file.git                                                              
    Cloning into bare repository '/root/.cache/composer/vcs/https---github.com-Pi-George-laminas-file.git'...  
    [email protected]: Permission denied (publickey).                                                             
    fatal: Could not read from remote repository.                                                              
                                                                                                               
    Please make sure you have the correct access rights                                                        
    and the repository exists.                                                                                 
                                                                                                               
  - [email protected]:Pi-George/laminas-file.git                                                                  
    Cloning into bare repository '/root/.cache/composer/vcs/https---github.com-Pi-George-laminas-file.git'...  
    [email protected]: Permission denied (publickey).                                                             
    fatal: Could not read from remote repository.                                                              
                                                                                                               
    Please make sure you have the correct access rights                                                        
    and the repository exists.        

Also worth noting, checkout is checking out a bitbucket repo, not a github repo.

@guitarrapc guitarrapc added the help wanted Extra attention is needed label Sep 18, 2023
@guitarrapc
Copy link
Owner

guitarrapc commented Sep 18, 2023

Need more info, including reproduce step would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants