SourceTree uses Git Path on mercurial repository

XMLWordPrintable

    • 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

      1. Enable Always Display Full Console Output option
      2. Navigate to Mercurial Repository
      3. Add the code below in .hgrc
        [hooks]
        commit = echo $HG - $PATH
        
      4. Make a commit on the mercurial repository
      5. Observe the full console output
      6. "hg_local" can't be located in the given PATH
      • STSP-5392

            Assignee:
            Unassigned
            Reporter:
            Ronald C.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: