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

Support for "Git for Windows 2.4.x"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 1.6.14
    • Git
    • Windows 7 - x64

    Description

      I updated my git version 1.9.5 (mysysgit - https://msysgit.github.io/)
      to 2.4.1 (https://github.com/git-for-windows/git/releases/tag/v2.4.1.windows.1)

      After the git update I started SourceTree and it said that it can't find git (see screenshot attachment).
      If I select "Browse to the location of git on your system" nothing happens. The "Git not found" dialog will popup again and again. It doesn't let me select the path.

      So I took a look at the git installation folder and the SourceTree user.config and realized that SourceTree only stores the path to the git installation folder. Not the path to the git executable. E.g.

      <setting name="GitSystemPath" serializeAs="String">
      <value>C:\Program Files\Git</value>
      </setting>

      So SourceTree depends on the structure of the git installation directory and this structure changed from 1.9.5 to 2.4.1.

      In 1.9.5 the git executable is located in GIT_INSTALL_FOLDER/bin
      In 2.4.1 the git executable is located in GIT_INSTALL_FOLDER/cmd

      Workaround
      I just created a junction GIT_INSTALL_FOLDER/bin that points to GIT_INSTALL_FOLDER/cmd and it worked.
      (See the workaround screenshot attachment)
      The junction was created using http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bc1ee28fec42 René Link
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: