-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.4.7.0
-
Windows 10, from PowerShell, opened per command line
-
Severity 2 - Major
I want to open SourceTree per command line in the current repository.
If I run $env:LOCALAPPDATA\SourceTree\SourceTree.exe -f . status then SourceTree opens, but not in the current repository.
If I run $env:LOCALAPPDATA\SourceTree\app-2.4.7\SourceTree.exe -f . status then SourceTree opens correctly with the current repository.
Since this is a Squirrel app, it is not feasible to use the hard path with the version. The Sourcetree start wrapper should route all command line parameters to the actual exe.
I just found a workaround.
It seems, that relative paths are not working (the . especially) because the squirrel wrapper and the updater.exe seem to redirect the current directory to the installation dir.
got it working with
as $PWD returns the absolute path of the current directory