fix(init): restore snapshots on init
This commit is contained in:
parent
2499e94ba1
commit
a985223387
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue