-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 2.3
-
Component/s: None
-
None
-
Severity 3 - Minor
Summary
While working on a hg extension I've noticed that if SourceTree is using the embedded hg that sets a PATH in which the HG executable can't be found. It may think that the repository is a git repository and set the paths accordingly.
The output of echo $HG - $Path on commit hooks shows:
hg_local - /Applications/SourceTree.app/Contents/Resources/bin:/Applications/SourceTree.app/Contents/Resources/git_local/bin:/Applications/SourceTree.app/Contents/Resources/git_local/gitflow:/Applications/SourceTree.app/Contents/Resources/git_local/git-lfs:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin
Steps to Reproduce
- Enable Always Display Full Console Output option
- Navigate to Mercurial Repository
- Add the code below in .hgrc
[hooks] commit = echo $HG - $PATH
- Make a commit on the mercurial repository
- Observe the full console output
- "hg_local" can't be located in the given PATH
- STSP-5392