wip: always force create snapshot

This commit is contained in:
Dax Raad
2025-07-23 20:46:43 -04:00
parent 1ad529db59
commit 2c82ee592c
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export namespace Snapshot {
})
}
export async function create(force?: boolean) {
export async function create() {
log.info("creating snapshot")
const app = App.info()
@@ -55,7 +55,7 @@ export namespace Snapshot {
log.info("added files")
const result =
await $`git --git-dir ${git} commit ${force ? "--allow-empty" : ""} -m "snapshot" --no-gpg-sign --author="opencode <mail@opencode.ai>"`
await $`git --git-dir ${git} commit --allow-empty -m "snapshot" --no-gpg-sign --author="opencode <mail@opencode.ai>"`
.quiet()
.cwd(app.path.cwd)
.nothrow()