From 0d53fcc28ec764383de539d6cd75b16ac202fb47 Mon Sep 17 00:00:00 2001 From: lew Date: Fri, 19 Dec 2025 23:08:34 +0000 Subject: [PATCH] fix(init): no existing stores is not an error --- cmd/vcs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/vcs.go b/cmd/vcs.go index 055f644..dc7c291 100644 --- a/cmd/vcs.go +++ b/cmd/vcs.go @@ -483,7 +483,8 @@ func restoreAllSnapshots(store *Store, repoDir string) error { entries, err := os.ReadDir(targetDir) if err != nil { if os.IsNotExist(err) { - return fmt.Errorf("no existing stores found") + fmt.Printf("no existing stores found, not restoring") + return nil } return err }