Current Behavior:
I am running the npm version command but it is issuing an invalid git command to check whether the repository is clean and therefore always fails.
Expected Behavior:
npm should either check the git version or issue an alternate --porcelain syntax to work properly with git, or report which version of git it requires to operate correctly.
Steps To Reproduce:
- In the environment shown below
- Run 'npm version patch -m "release Version patch %s, now with double cleaning action." '
- See error:
npm ERR! code 129
npm ERR! command failed
npm ERR! command /usr/bin/git status --porcelain=v1 -uno
npm ERR! error: option `porcelain' takes no value
npm ERR! usage: git status [options] [--] ...
npm ERR!
npm ERR! -v, --verbose be verbose
npm ERR! -s, --short show status concisely
npm ERR! -b, --branch show branch information
npm ERR! --porcelain machine-readable output
Environment:
- OS: Ubuntu 14.04
- Node: 12.19.0
- npm: 7.5.6
- git: 1.9.1
Note, when I run the command /usr/bin/git status --porcelain -uno
instead, it correctly shows the status of the repo so it seems npm is expecting some version of git without verifying that it has that version.
Current Behavior:
I am running the npm version command but it is issuing an invalid git command to check whether the repository is clean and therefore always fails.
Expected Behavior:
npm should either check the git version or issue an alternate --porcelain syntax to work properly with git, or report which version of git it requires to operate correctly.
Steps To Reproduce:
npm ERR! code 129
npm ERR! command failed
npm ERR! command /usr/bin/git status --porcelain=v1 -uno
npm ERR! error: option `porcelain' takes no value
npm ERR! usage: git status [options] [--] ...
npm ERR!
npm ERR! -v, --verbose be verbose
npm ERR! -s, --short show status concisely
npm ERR! -b, --branch show branch information
npm ERR! --porcelain machine-readable output
Environment:
Note, when I run the command /usr/bin/git status --porcelain -uno
instead, it correctly shows the status of the repo so it seems npm is expecting some version of git without verifying that it has that version.