浏览代码

more fixes for shell 128 error

Dax Raad 8 月之前
父节点
当前提交
99d3a0bb24
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/opencode/src/snapshot/index.ts

+ 1 - 1
packages/opencode/src/snapshot/index.ts

@@ -39,7 +39,7 @@ export namespace Snapshot {
       log.info("initialized")
     }
     await $`git --git-dir ${git} add .`.quiet().cwd(app.path.cwd).nothrow()
-    const hash = await $`git --git-dir ${git} write-tree`.quiet().cwd(app.path.cwd).text()
+    const hash = await $`git --git-dir ${git} write-tree`.quiet().cwd(app.path.cwd).nothrow().text()
     return hash.trim()
   }