vscode: git: refresh button get error

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.79.0
  • OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Click Source Control button on the left menu
  2. Click Refresh button on the right of the project name
  3. Click Show Command Ouptput show below log.

git status -z -uall --find-renames=50% error: unknown option `find-renames=50%โ€™ usage: git status [<options>] [โ€“] <pathspec>โ€ฆ

-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

image

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

The plan is to release a recovery release later today that will include this fix.

I had the same problem. I ran git clean -n , restarted VSCode and it was fixed ๐Ÿ”ฎ

Yes. The currently plan is to release a fix for this in Insiders today, and Stable later this week.

@Dragonite24, thank you very much for the quick turnaround. Glad to hear that the fixes are working. The fixes have been ported to our release branch, and will be included in the Stable recovery release.

I had the same problem. I ran git clean -n , restarted VSCode and it was fixed ๐Ÿ”ฎ

i try to reboot my pc and use this command, but it doesn`t work

Everything is working! โค๏ธ

VSCode about: Version: 1.80.0-insider (user setup) Commit: bf5419f02d146b4359c32fa0748f8ba47adf118c Date: 2023-06-14T05:43:26.713Z Electron: 22.5.7 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.19045

image

switch git.similarityThreshold setting from 50 to 51:

2023-06-14 15:08:18.825 [info] > git config --get commit.template [16ms]
2023-06-14 15:08:18.859 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/feature/ab-test-buttons refs/remotes/feature/ab-test-buttons [17ms]
2023-06-14 15:08:18.929 [info] > git status -z -uall [55ms]

@Dragonite24, just to triple check, would you please run git --version in the integrated terminal and share the output?

sure: git version 2.17.1

image

@WuShichao, thank you. Your data confirms the same problem:

2023-06-13 11:04:27.047 [info] Using git โ€œโ€ from โ€œgitโ€