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

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
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

78 views 3 6
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you