-
Notifications
You must be signed in to change notification settings - Fork 652
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
[Bug] GitVersion is extremely slow (25 minutes) #2881
Comments
After some more digging: this is caused by var changes = repositoryInstance.Diff.Compare<TreeChanges>(repositoryInstance.Head.Tip.Tree,
DiffTargets.Index | DiffTargets.WorkingDirectory); This appears to be due to slow index performance. Subsequent calls to As a side note, I noticed that the libgit2 binaries used by GitVersion are almost two years old. |
May this be related to #2864, perhaps? |
I don't think we expected The reason we're using a 2 year old version of LibGit2Sharp is because the latest release of LibGit2Sharp is 2 years old. |
If an upgrade of LibGit2Sharp may help alleviate this problem, #2916 should provide useful. |
🎉 This issue has been resolved in version 6.0.0-beta.3 🎉 Your GitReleaseManager bot 📦🚀 |
Describe the bug
Running
gitversion
to generate the JSON for a project is very slow; about 25 minutes.Expected Behavior
It should not take more than a few seconds.
Steps to Reproduce
This is a private project I cannot share, unfortunately, but I can run additional tests if necessary.
Attached is a log with
/diag
: gitversion-log.txtYour Environment
The text was updated successfully, but these errors were encountered: