I now painfully regret deleting a stalled site…
Until November, I had a Netlify site running and I was using my personal theme as a submodule using SSH (email@example.com). I since deleted the site and created a new one with a foreign theme.
Today, I wanted to re-create the old site from the still existing repository, but the submodule can’t be loaded at deployment.
2:22:37 PM: git clone https://github.com/metbril/robertvanbregt_nl 2:22:38 PM: Preparing Git Reference refs/heads/master 2:22:39 PM: Error checking out submodules: Submodule 'themes/grotius' (firstname.lastname@example.org:metbril/hugo-grotius.git) registered for path 'themes/grotius' Cloning into '/opt/build/repo/themes/grotius'... Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'email@example.com:metbril/hugo-grotius.git' into submodule path '/opt/build/repo/themes/grotius' failed Failed to clone 'themes/grotius'. Retry scheduled
I think it has to do with using
https: for submodules, but when I change this, I can’t properly edit my own theme. So I have a need to continue using the SSH access to the repo for development.
Can you provide me with instructions/documentation how to get this working again / provide a deploy key?
The instructions are not 100% clear to me. Should I add the deploy key to the site repository, to the submodule repository or both?