You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running the following command: commitlint --from=HEAD^1. This works fine on OSX, but fails in Windows 10 (cmd.exe) with the following error:
/node_modules/@commitlint/cli/lib/cli.js:127
throw err;
^
Error: fatal: ambiguous argument 'HEAD1..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
at Transform.transform [as _transform] (C:\CODE\instructure-ui\node_modules\git-raw-commits\index.js:100:36)
at Transform._write (node:internal/streams/transform:171:8)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
at Writable.write (node:internal/streams/writable:508:10)
at Socket.ondata (node:internal/streams/readable:1007:22)
at Socket.emit (node:events:532:35)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
I have the same error in GitHub Actions. I use runs-on: ubuntu-latest and install the packages: cli, config-conventional, and types. The command I run is: pnpm dlx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
Steps to Reproduce
We are running the following command:
commitlint --from=HEAD^1
. This works fine on OSX, but fails in Windows 10 (cmd.exe) with the following error:Node version: 22
commitlint.config.js:
versions:
(was producing the same error on v17)
running via Husky
The text was updated successfully, but these errors were encountered: