-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Git
-
None
-
Environment:Windows 10.0.15063, Java 8 U 121
When you try to update the embedded git (Tools -> Options -> Git -> Update Embedded Git) the update fails at the "extracting" step with a generic message if any of the embedded git programs are in use.
This is a commonly reported issue, e.g. https://jira.atlassian.com/browse/SRCTREEWIN-3970 , https://jira.atlassian.com/browse/SRCTREEWIN-2863 , and many more.
There are a variety of reasons internal git programs would be in use:
- user is using terminal (git bash)
- user is using ssh keys in pageant
- there is a hung git process from a previous operation this Windows session (due to, for instance, a fetch on a remote that was deleted)
Ways to deal with this before extracting, from simplest to best:
- Save the download so at least you don't have to redo the download again to retry
- Show a message about quitting running git/terminal/pageant so at least users know what issue to look for
- Detect running embedded git programs and prompt the user to close them, continuing once they are closed
- Detect running embedded git programs and automatically close them when safe