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

error: commit message has single quote #12

Closed
jimmyhealer opened this issue Dec 8, 2022 · 0 comments · Fixed by #16
Closed

error: commit message has single quote #12

jimmyhealer opened this issue Dec 8, 2022 · 0 comments · Fixed by #16
Labels
bug Something isn't working

Comments

@jimmyhealer
Copy link

I'm using this tool in WSL2.

Got the some error:

✔ Pick a message · feat: implement dijkstra's algorithm
/bin/sh: 1: Syntax error: Unterminated quoted string
Aborted.
Error: Command failed: git commit -m 'feat: implement dijkstra\'s algorithm'
    at checkExecSyncError (node:child_process:828:11)
    at execSync (node:child_process:899:15)
    at file:///home/jimmyhealer/.npm/_npx/de3899c053a47706/node_modules/commitgpt/dist/index.js:122:25
    at step (file:///home/jimmyhealer/.npm/_npx/de3899c053a47706/node_modules/commitgpt/dist/index.js:33:23)
    at Object.next (file:///home/jimmyhealer/.npm/_npx/de3899c053a47706/node_modules/commitgpt/dist/index.js:14:53)
    at fulfilled (file:///home/jimmyhealer/.npm/_npx/de3899c053a47706/node_modules/commitgpt/dist/index.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 2,
  signal: null,
  output: [ null, null, null ],
  pid: 2295,
  stdout: null,
  stderr: null
}
Error: Command failed: git commit -m 'feat: implement dijkstra\'s algorithm'

This command fails because the backslash does not successfully escape the character.

@RomanHotsiy RomanHotsiy added the bug Something isn't working label Dec 8, 2022
@RomanHotsiy RomanHotsiy mentioned this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants