I'm just getting this behavior from this morning, once GitLens got updated to 9.7.0
I tried with different workspaces, and I'm still getting the error.
When I install back 9.6.3 version, the behavior disappears.
Steps to Reproduce:
Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false -c color.status=false status --porcelain=v2 -M -- Makefile
error: unknown switch `M'
usage: git status [] [--] ... -v, --verbose be verbose -s, --short show status concisely -b, --branch show branch information --show-stash show stash information --ahead-behind compute full ahead/behind values --porcelain[=<version>] machine-readable output --long show status in long format (default) -z, --null terminate entries with NUL -u, --untracked-files[=<mode>] show untracked files, optional modes: all, normal, no. (Default: all) --ignored[=<mode>] show ignored files, optional modes: traditional, matching, no. (Default: traditional) --ignore-submodules[=<when>] ignore changes to submodules, optional when: all, dirty, untracked. (Default: all) --column[=<style>] list untracked files in columns
Output logs:
output-gitlens.txt
output-gitlens-git.txt
Same error with you when I upgrated GitLens to 9.7.0
Same error
Same error! @eamodio
Same error
update git to last version helped
Damn, sorry all. It looks like that parameter is only support in Git 2.18 or later. I'll push out a new release shortly to fix this.
git version 2.17.1.windows.2 here, seeing the same error.
9.7.1 will be in the marketplace very shortly -- sorry for the issue!
On macOS helped upgrade git with Homebrew and echo 'export PATH="/usr/local/git/bin:/usr/local/sbin:$PATH"' >> ~/.bash_profile then restart VSCode.
@eamodio thanks for fast reply and fix
same error
Just installed 9.7.1
Fix confirmed!
Thanks @eamodio :+1:
@BraveHead the same with 9.7.1?
@BraveHead the same with 9.7.1?
Update to 9.7.1 is fine.
same error
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
9.7.1 will be in the marketplace very shortly -- sorry for the issue!