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

Git check fails on MacOS #26

Closed
Truffula opened this issue Jul 13, 2023 · 1 comment
Closed

Git check fails on MacOS #26

Truffula opened this issue Jul 13, 2023 · 1 comment

Comments

@Truffula
Copy link

The path created to the git repo folder for checking its status uses an explicit backslash instead of path.join() which causes it to throw an error on MacOS:

/path/to/repo/node_modules/ts-fix/dist/index.js:90
            throw new Error(err.message);
            ^

Error: Command failed: git --git-dir="/path/to/repo\.git" --work-tree="/path/to/repo" status --porcelain
fatal: not a git repository: '/path/to/repo\.git'

    at /path/to/repo/node_modules/ts-fix/dist/index.js:90:19
    at ChildProcess.exithandler (node:child_process:404:5)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)

The path is generated here.

This happens even with the --ignoreGitStatus flag.

@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

Successfully merging a pull request may close this issue.

2 participants