Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Tinker Fadoua
Community Champion
February 12, 2026

Blocking any new replies since there has been no activity for couple years.

 

TAGS
AUG Leaders

Atlassian Community Events