mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-06 00:46:53 +00:00
fix: ensure that vcs is still set to git even if no commits in repo
This commit is contained in:
@@ -16,7 +16,9 @@ describe("Project.fromDirectory", () => {
|
||||
|
||||
expect(project).toBeDefined()
|
||||
expect(project.id).toBe("global")
|
||||
expect(project.worktree).toBe("/")
|
||||
expect(project.vcs).toBe("git")
|
||||
expect(project.worktree).toBe(tmp.path)
|
||||
expect(project.vcsDir).toBe(path.join(tmp.path, ".git"))
|
||||
|
||||
const opencodeFile = path.join(tmp.path, ".git", "opencode")
|
||||
const fileExists = await Bun.file(opencodeFile).exists()
|
||||
|
||||
Reference in New Issue
Block a user