Search code examples
githerokugitolite

heroku + git submodule needs authentication


We are using gitolite to manage our repositories and one of our heroku project's have git submodules. Is there a way to get Heroku's public key for the authentication?

Thanks, David


Solution

  • No, probably not. Instead, you can use HTTPS basic authentication when you create the submodule in your git repository, similar to deploying private gems to Heroku. Looks something like this:

    git submodule add https://username:password@github.com/username/repo.git