Bug 1253212 Comment 34 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I think it's probably a good idea to check the registry keys (`HKLM\SOFTWARE\GitForWindows`, etc.) and `where git`. The Git for Windows installer has an option to keep user's PATH unmodified, but the default one is to add the git.exe directory to PATH. It's also possible that users install other Git clients or use portable Git binary, which do not set the `GitForWindows` registry keys. By checking both the registry and `where git`, we can cover as many different user's configurations as possible.
I think it's probably a good idea to check the registry keys (`HKLM\SOFTWARE\GitForWindows`, etc.) and `where git`. The Git for Windows installer has an option to keep user's PATH unmodified, but the default one is to add the git.exe directory to PATH. It's also possible that users install other Git clients or use portable Git binary, which do not set the `GitForWindows` registry keys. By checking both the registry and `where git`, we can support as many different user's configurations as possible.

Back to Bug 1253212 Comment 34