From a985223387d7e2669292472ebefc467743021d58 Mon Sep 17 00:00:00 2001 From: lew Date: Fri, 19 Dec 2025 23:04:20 +0000 Subject: [PATCH] fix(init): restore snapshots on init --- cmd/vcs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/vcs.go b/cmd/vcs.go index 538dc8e..088a473 100644 --- a/cmd/vcs.go +++ b/cmd/vcs.go @@ -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) {