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.
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot