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
Use static/cached GitVersion to resolve Git path #9246
Conversation
Report new GitVersion after changes
@@ -336,6 +336,7 @@ public static string GitCommandValue | |||
} | |||
set | |||
{ | |||
GitVersion.ResetVersion(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only if value has changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered that, but wanted to keep it simple.
It is not the end of the world to run the command again....
Can change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@msftbot merge in 24 hours |
Hello @gerhardol! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Missed to squash the commit, automerge should fail... |
This issue was raised to the bot owners.
|
Part of #9229
Proposed changes
Reset GitVersion cache when setting Git command path
Report new GitVersion after changes
Use static/cached GitVersion to resolve Git path
This eliminates one
git --version
command during startup. At home this is about 35ms, at work 230ms (probably serialized, so delaying the startup considerably).Test methodology
Tests exist
Manual
See Git Command Log for executed command, modify gitcommand path in registry to simulate issues
✒️ I contribute this code under The Developer Certificate of Origin.