Is it possible to call a PowerShell script from a custom action in SourceTree?
I've tried adding it directly as the "Script to run", as well as using "powershell" as the script to run and then adding the actual script as one of the parameters.
Same result in both cases - the script is not called, and the SourceTree progress dialog when running the custom action never finishes. I have to press the Cancel button to stop the execution.
I've also tried wrapping the PowerShell script inside of a Batch file, but the same happens again - it never finishes. Running the batch file from command line works perfectly fine.
Is there a working example for running a PowerShell script from a SourceTree custom action?
Can you view details when running the custom action? If so, is there anything there?
You might try experimenting with running a random powershell script that requires no parameters. It may be that the parameters you're using need escaped or quoted differently.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.