-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
3.0.17
-
Severity 2 - Major
Scoop is a command line installer for Windows, think apt-get but for Windows. I used it to install `git`, and then Sourcetree. On installation, Sourcetree unfortunately misidentifies the location of git.exe:
There is no `cmd` folder under `scoop`:
But there is a `cmd/git.exe` in `C:\Users\Jan\scoop\apps\git\current\cmd`:
Seems the installer is somehow using a a wrong path, and then adding `cmd/git.exe` to it. Maybe because Scoop is installing a shim for git in `C:\Users\Jan\scoop\shims\git.exe`? Go a folder back, then add `cmd/git.exe` and you have the wrong path.
Here is a GitHub issue on the scoop bucket that contains Sourcetree: https://github.com/lukesampson/scoop-extras/issues/1674 In there I collected some links to other issues on GitHub but also in the Atlassian Community, that helped me understand the issue and also provides a workaround by manually editing the path in the Sourcetree configuration.
I created the following script to get around the issue