Add basic Git detection support to MozillaBuild
Categories
(Firefox Build System :: MozillaBuild, task)
Tracking
(Not tracked)
People
(Reporter: gkw, Assigned: glob)
References
Details
Attachments
(1 file, 7 obsolete files)
3.39 KB,
patch
|
away
:
review+
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Reporter | ||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Reporter | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Reporter | ||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Reporter | ||
Comment 9•9 years ago
|
||
Reporter | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 12•9 years ago
|
||
Reporter | ||
Comment 13•9 years ago
|
||
Comment 14•8 years ago
|
||
Updated•8 years ago
|
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Reporter | ||
Comment 19•7 years ago
|
||
Reporter | ||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Reporter | ||
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Comment 24•7 years ago
|
||
Reporter | ||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
Reporter | ||
Comment 27•7 years ago
|
||
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
Comment 30•5 years ago
|
||
I used the patch on a Windows 10 x64 installation with Git for Windows 2.23.0 and it worked fine for me.
Assignee | ||
Comment 31•5 years ago
|
||
Taking to push over the finish line - this impacts moz-phab too, which requires git to install dependencies and apply patches.
Updated patch that:
- adds disabling mechanism via MOZ_NO_GIT_DETECT
- unsets GITDIR and GITKEY variables
Assignee | ||
Comment 32•5 years ago
|
||
Comment 33•5 years ago
•
|
||
Do we need to check HKCU too, per comment 6?
And, to make sure I understand correctly, you want to add git to PATH regardless of whether or not it's in the user's PATH for normal command prompts? (I can't remember whether the installer offers to do this.) Otherwise it would be an easy check for where git
before we reset PATH.
Comment 34•5 years ago
•
|
||
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.
Assignee | ||
Comment 35•5 years ago
|
||
Changes since last patch:
Check for git in the following locations (in order):
- windows path (using
where git
) - HKCU 64-bit
- HKCU 32-bit
- HKLM 64-bit
- HKLM 32-bit
Assignee | ||
Comment 36•5 years ago
|
||
Changes since last patch:
Apply fixed token parsing to all REG calls.
Comment 37•5 years ago
|
||
Comment 38•5 years ago
|
||
Yes, that block can just be removed.
Assignee | ||
Comment 39•5 years ago
|
||
Changes since last patch:
Remove unnecessary LLVM detection
Comment 40•5 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/mozilla-build/rev/67772d477c94
Add basic Git detection support to MozillaBuild; r=dmajor
Updated•2 years ago
|
Description
•