mirror of
https://github.com/sst/opencode.git
synced 2025-08-30 09:47:25 +00:00
parent
53bb6b4c4f
commit
67e9bda94f
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ const snapshot = process.argv.includes("--snapshot")
|
|||
|
||||
const version = snapshot
|
||||
? `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
|
||||
: await $`git describe --tags --exact-match HEAD`
|
||||
: await $`git describe --tags --abbrev=0`
|
||||
.text()
|
||||
.then((x) => x.substring(1).trim())
|
||||
.catch(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue