Compare commits

...

2 Commits

Author SHA1 Message Date
Dax Raad 23788674c8 disable snapshots temporarily 2025-07-04 08:45:18 -04:00
GitHub Action 121eb24e73 Update download stats 2025-07-04 2025-07-04 12:26:16 +00:00
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -7,3 +7,4 @@
| 2025-07-01 | 22,108 (+1,981) | 43,745 (+2,686) | 65,853 (+4,667) |
| 2025-07-02 | 24,814 (+2,706) | 46,168 (+2,423) | 70,982 (+5,129) |
| 2025-07-03 | 27,834 (+3,020) | 49,955 (+3,787) | 77,789 (+6,807) |
| 2025-07-04 | 30,608 (+2,774) | 54,758 (+4,803) | 85,366 (+7,577) |
+3 -3
View File
@@ -9,6 +9,7 @@ export namespace Snapshot {
const log = Log.create({ service: "snapshot" })
export async function create(sessionID: string) {
return
log.info("creating snapshot")
const app = App.info()
const git = gitdir(sessionID)
@@ -45,10 +46,9 @@ export namespace Snapshot {
.nothrow()
log.info("commit")
// Extract commit hash from output like "[main abc1234] snapshot"
const match = result.stdout.toString().match(/\[.+ ([a-f0-9]+)\]/)
if (!match) throw new Error("Failed to extract commit hash")
return match[1]
if (!match) return
return match![1]
}
export async function restore(sessionID: string, commit: string) {