automated snapshot
This commit is contained in:
@@ -104,7 +104,11 @@ func (s *Storage) Save() (string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Printf("Error getting working tree in a known clean state: %v", err)
|
s.log.Printf("Error getting working tree in a known clean state: %v", err)
|
||||||
} else {
|
} else {
|
||||||
|
if committed {
|
||||||
s.log.Printf("Created commit %s on %s for snapshot %s", hash, branch, kid)
|
s.log.Printf("Created commit %s on %s for snapshot %s", hash, branch, kid)
|
||||||
|
} else {
|
||||||
|
s.log.Printf("Referencing commit %s on %s for snapshot %s", hash, branch, kid)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = s.db.Exec(`
|
_, err = s.db.Exec(`
|
||||||
|
|||||||
Reference in New Issue
Block a user