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

Temporarily unable to find filters located in Windows PATH

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 1.6.11
    • Git
    • Using embedded git

    Description

      We make use of git-media (https://github.com/vitei/git-media) to store large files outside of the git object database and retrieve them automatically in the clean/smudge filters. Usually, this works fine, but occasionally SourceTree reports that it couldn't find the `git-media` executable (see attached screenshot).

      Discarding the message and then refreshing usually works. Sometimes it takes a few refreshes. These failed filters can cause unwanted side-effects, such as marking files as modified when in fact they haven't been, requiring us to manually discard the changes – so the issue is worse than just an annoying error message.

      It's as if the PATH environment variable has been temporarily modified, or for some reason git/SourceTree have temporarily "forgotten" the location of git-media. I have confirmed that the executable is locatable in both the system and the user PATH environment variables. Unfortunately the problem is usually so fleeting that further research has proved difficult – by the time we click through the error message the problem has resolved itself. I am fairly certain that the problem is not with `git-media` specifically, but would happen when running any filter that requires git to run an executable/script located in PATH.

      Attachments

        1. sourcetree.log
          3 kB
          Daniel Wright
        2. no-git-media.png
          11 kB
          Daniel Wright

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7c4402d605d2 Daniel Wright
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: