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

fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths #229

Open
1 task
waki285 opened this issue Jul 9, 2023 · 2 comments
Labels
bug Something isn't working pending triage

Comments

@waki285
Copy link

waki285 commented Jul 9, 2023

Bug description

I got this error. Full log:

┌   aicommits 
│
◇  Detected 1 staged file:
     src/logger.ts
│
◇  Changes analyzed
│
◇  Use this commit message?

   Add logger configuration function

│  Yes
│
└  ✖ Command failed with exit code 128: git commit -m Add logger configuration function 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths

fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
    at Su (file:///C:/Users/[redacted]/AppData/Roaming/nvm/v16.15.0/node_modules/aicommits/dist/cli.mjs:27:57)
    at file:///C:/Users/[redacted]/AppData/Roaming/nvm/v16.15.0/node_modules/aicommits/dist/cli.mjs:27:8640
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///C:/Users/[redacted]/AppData/Roaming/nvm/v16.15.0/node_modules/aicommits/dist/cli.mjs:84:221

    aicommits v1.11.0

    Please open a Bug report with the information above:
    https://github.com/Nutlope/aicommits/issues/new/choose

I have done this operation:

  1. create and edit src/logger.ts
  2. git add src/logger.ts
  3. aicommits

aicommits version

v1.11.0

Environment

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 2.74 GB / 15.75 GB
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 9.2.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.1.1 - C:\Program Files\nodejs\pnpm.CMD

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.
@waki285 waki285 added bug Something isn't working pending triage labels Jul 9, 2023
@waki285
Copy link
Author

waki285 commented Jul 9, 2023

This error occurred when I tried again (or rather, it occurred in all of the several edits I made down the road)

@waki285
Copy link
Author

waki285 commented Jul 11, 2023

this did not happen at the command prompt or in WSL(2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage
Projects
None yet
Development

No branches or pull requests

1 participant