I'm trying to create a custom action to open a command prompt to a given repository's working directory. (I'm in Windows.)
I created a custom action with this script:
And these parameters:
/k pushd $REPO
When I launch I can see the command executed like this:
cmd.exe /k pushd C:\Users\CameronGocke\Git\api-portal
SourceTree; however, just spins and never launches the command prompt, whereas if I run the command directly I get what I'd expect to see.
The response from @Geoff Joy seems to be on the right track in terms of the cause, but it is still not working properly. SourceTree still waits for the process and all child processes to finish before it returns. I have 2 scripts created for custom actions that both behave the same way. The other is to launch VS Code and looks like this:
start "" "C:\Program Files (x86)\Microsoft VS Code\Code.exe" "%1"
Though the script ends, SourceTree continues spinning until VS Code is closed and then control returns to SourceTree.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
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!
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