Bläddra i källkod

fix: don't sign snapshot commits (#1046)

Robin Moser 1 år sedan
förälder
incheckning
f45deb37f0
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5 4
      packages/opencode/src/snapshot/index.ts

+ 5 - 4
packages/opencode/src/snapshot/index.ts

@@ -38,10 +38,11 @@ export namespace Snapshot {
     await $`git --git-dir ${git} add .`.quiet().cwd(app.path.cwd).nothrow()
     await $`git --git-dir ${git} add .`.quiet().cwd(app.path.cwd).nothrow()
     log.info("added files")
     log.info("added files")
 
 
-    const result = await $`git --git-dir ${git} commit -m "snapshot" --author="opencode <mail@opencode.ai>"`
-      .quiet()
-      .cwd(app.path.cwd)
-      .nothrow()
+    const result =
+      await $`git --git-dir ${git} commit -m "snapshot" --no-gpg-sign --author="opencode <mail@opencode.ai>"`
+        .quiet()
+        .cwd(app.path.cwd)
+        .nothrow()
 
 
     const match = result.stdout.toString().match(/\[.+ ([a-f0-9]+)\]/)
     const match = result.stdout.toString().match(/\[.+ ([a-f0-9]+)\]/)
     if (!match) return
     if (!match) return