automated snapshot
This commit is contained in:
@@ -91,7 +91,8 @@ func (s *Storage) Save(capture *SketchCapture) (string, error) {
|
||||
id, _ := s.gen.Next()
|
||||
flakeId := ids.Base62Encode(id)
|
||||
path := filepath.Join(s.snapshotsDir, flakeId)
|
||||
os.MkdirAll(path, 0755)
|
||||
dataDir := filepath.Join(path, "data")
|
||||
os.MkdirAll(dataDir, 0755)
|
||||
|
||||
hash, branch, committed, err := s.SaveToGit(flakeId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user