Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-3788

SourceTree fails to start, open and everything if you have a HOMEDRIVE env variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 1.6.18
    • Git
    • Windows 7

    • Severity 3 - Minor

    Description

      SourceTree fails with the following message when doing anything related with git:

      'git something' failed with code 128: fatal: unable to access 'H:\/.config/git/config': Invalid argument

      My gitconfig is located in the default path: C:\Users\myusername ; however SourceTree tries to access H:, which is a network drive that is not connected at the moment.

      Finally, I found that I have the following environment variable:
      HOMEDRIVE=H:

      It seems that when trying to read the environment variable HOME, it read HOMEDRIVE instead.

      I solved this by adding a new environment variable: HOME=C:\Users\myusername

      However this is a bug because it should never read HOMEDRIVE.

      Attachments

        Activity

          People

            Unassigned Unassigned
            4b1fae90577d jinschen
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: