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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

103 views 14 7
Join discussion

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