Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't be used in git subdirectory #35

Closed
tjx666 opened this issue May 19, 2024 · 1 comment
Closed

can't be used in git subdirectory #35

tjx666 opened this issue May 19, 2024 · 1 comment

Comments

@tjx666
Copy link

tjx666 commented May 19, 2024

 ts-fix -e 2578 --write --file lib/api/comment.ts
/Users/yutengjing/Library/pnpm/global/5/.pnpm/@yutengjing+ts-fix@0.0.1/node_modules/@yutengjing/ts-fix/dist/index.js:90
            throw new Error(err.message);
            ^

Error: Command failed: git --git-dir="/Users/yutengjing/code/Project-Root/web\.git" --work-tree="/Users/yutengjing/code/Project-Root/web" status --porcelain
fatal: not a git repository: '/Users/yutengjing/code/Project-Root/web\.git'

    at /Users/yutengjing/Library/pnpm/global/5/.pnpm/@yutengjing+ts-fix@0.0.1/node_modules/@yutengjing/ts-fix/dist/index.js:90:19
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12)

Node.js v18.20.2
@jakebailey
Copy link
Member

Fixed by #23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants