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) {