Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot call git in custom action using system environment variable %USERPROFILE%

Porter Bassett April 27, 2017

According to this article:

https://confluence.atlassian.com/sourcetreekb/using-git-in-custom-actions-785323500.html

In Windows, I should be able to call "%USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\mingw32\bin\git.exe" as the script to run in a custom action.

This does not work for me, and fails in the same way as a bad path would.

Calling %USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\mingw32\bin\git.exe from a command-line prompt executes the embedded git just fine.

It also works if I use c:\users\[username]\AppData\Local\Atlassian\SourceTree\git_local\mingw32\bin\git.exe as the custom action script.

Has anybody else been able to call the embedded git in a generalized way (using enviornment variables)?  Did you do anything different from what I have done?

I am running SourceTree version 2.0.19.1.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events