fix(init): restore snapshots on init

This commit is contained in:
Lewis Wynne 2025-12-19 23:04:20 +00:00
parent 2499e94ba1
commit a985223387

View file

@ -196,7 +196,10 @@ func vcsInit(cmd *cobra.Command, args []string) error {
return nil
}
return writeGitignore(repoDir)
if err := writeGitignore(repoDir); err != nil {
return err
}
return restoreAllSnapshots(store, repoDir)
}
func vcsRepoRoot() (string, error) {