salt-extensions / salt-extension-copier

Create and maintain Salt extensions using Copier
https://salt-extensions.github.io/salt-extension-copier/
Apache License 2.0
10 stars 3 forks source link

Fix project environment initialization crash during first copy #58

Closed lkubb closed 2 months ago

lkubb commented 2 months ago

git restore --staged . requires a HEAD, which is not present when the repo has just been initialized (ie missing the initial commit). This caused a crash in the env initialization script, which resulted in a warning after copier copy (nothing else though).