Skip to content

Commit 1787fee

Browse files
committed
fix: Extend timer scope
1 parent 97493e5 commit 1787fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/project/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export namespace Project {
2424

2525
export async function fromDirectory(directory: string) {
2626
log.info("fromDirectory", { directory })
27+
const timer = log.time("git.rev-parse")
2728
const git = await $`git rev-parse --absolute-git-dir`
2829
.cwd(directory)
2930
.text()
@@ -42,7 +43,6 @@ export namespace Project {
4243
return project
4344
}
4445
let worktree = path.dirname(git)
45-
const timer = log.time("git.rev-parse")
4646
let id = await Bun.file(path.join(git, "opencode"))
4747
.text()
4848
.then((x) => x.trim())

0 commit comments

Comments
 (0)