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

git add taking long #563

Open
4 tasks
josguil opened this issue Feb 17, 2023 · 1 comment
Open
4 tasks

git add taking long #563

josguil opened this issue Feb 17, 2023 · 1 comment

Comments

@josguil
Copy link
Member

josguil commented Feb 17, 2023

Setup

  • Which version of microsoft/git are you using? Is it 32-bit or 64-bit?

64

$ git --version --build-options

git version 2.36.0.vfs.0.0
cpu: x86_64
built from commit: 5323cc6ccf2923f4f41da713ea9d1125704dec5b
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

Are you using Scalar or VFS for Git?

unsure?

If VFS for Git, then what version?

$ gvfs version


GVFS 1.0.20175.6

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

11, 64 bit

$ cmd.exe /c ver

Microsoft Windows [Version 10.0.22623.1255]

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

git commands are slow no matter where I use them, VSCode, office bash, git bash...
Already tried git sparse-checkout reapply

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Office Bash, Git bash, VSCode...

commands like this are taking very long to complete:

git add
git commit
git reset
  • What did you expect to occur after running these commands?

they used to work pretty much after a couple seconds

  • What actually happened instead?

now I need to wait sometimes minutes

  • If the problem was occurring with a specific repository, can you specify
    the repository?

    • Public repo: insert URL here
    • Windows monorepo
    • [X ] Office monorepo
    • Other Microsoft-internal repo: insert name here
    • Other internal repo.
      scalar_20230217_152403.zip
@derrickstolee
Copy link
Collaborator

derrickstolee commented Feb 21, 2023

  • Which version of microsoft/git are you using? Is it 32-bit or 64-bit?

64

$ git --version --build-options

git version 2.36.0.vfs.0.0
cpu: x86_64
built from commit: 5323cc6ccf2923f4f41da713ea9d1125704dec5b
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

Please start by upgrading to the latest microsoft/git release as it includes valuable security updates.

Are you using Scalar or VFS for Git?

unsure?

You are using the Office monorepo and provided a scalar diagnose output, so you are using Scalar.

I did look at your scalar dianose .zip file and saw nothing strange. Your config looks correct, your sparse-checkout file looks sane, your .git/index file looks the right size.

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

git commands are slow no matter where I use them, VSCode, office bash, git bash... Already tried git sparse-checkout reapply

commands like this are taking very long to complete:

git add
git commit
git reset

Please re-run git add with GIT_TRACE2_PERF=1 and provide the output here so we can verify the slow portions of the execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants