Ohh, I think I’m finally starting to figure out what you’re saying, here! You’re not trying to create a snap of UE, but a snap of an application that installs it. Which needs to be able to clone it. You probably want to set the GIT_TEMPLATE_DIR
environment variable. Check out the demo in snapcraft that actually creates a snap of git for more info.