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

Submodule confusion #13

Closed
evanepio opened this issue Aug 16, 2017 · 1 comment
Closed

Submodule confusion #13

evanepio opened this issue Aug 16, 2017 · 1 comment
Assignees

Comments

@evanepio
Copy link
Member

Don't think submodules are the correct solution. When trying to get a clone of a fork working for development:

Evans-MacBook-Pro:peidevs.github.io evanporter$ git submodule init
Evans-MacBook-Pro:peidevs.github.io evanporter$ git submodule update
Cloning into '/Users/evanporter/projects/peidevs.github.io/themes/mainroad'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
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:swhalley/Mainroad.git' into submodule path '/Users/evanporter/projects/peidevs.github.io/themes/mainroad' failed
Failed to clone 'themes/mainroad'. Retry scheduled
Cloning into '/Users/evanporter/projects/peidevs.github.io/themes/mainroad'...
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:swhalley/Mainroad.git' into submodule path '/Users/evanporter/projects/peidevs.github.io/themes/mainroad' failed
Failed to clone 'themes/mainroad' a second time, aborting

I think the key piece of info is fatal: clone of 'git@github.com:swhalley/Mainroad.git' into submodule path .... The submodule is pointing to user swhalley's repo and appears to think I need write access to it.

Will need to think about what could achieve the same goal as git's seemingly brittle submodule system.

@evanepio evanepio self-assigned this Aug 16, 2017
@evanepio
Copy link
Member Author

Figured it out. We're currently using the git@github.com style URL. This uses SSH and thus needs to be authenticated and have permission to the repo. We need to use the public style URL with HTTPS.

Answered here: https://stackoverflow.com/questions/8197089/fatal-error-when-updating-submodule-using-git

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

No branches or pull requests

2 participants