Running script via custom action on Source Tree Windows

I didn't get it on working

image2015-1-23 17:0:14.png

image2015-1-23 17:0:59.png

the Script file works correct when i start it over the Windows command promt.

Oli

5 answers

1 accepted

I am guessing the problem here is that .sh files are not directly supported by Windows (.bat files are).

When you run that from the command line, is that a standard command line window, or one that's running cygwin? Try putting a specific command to run the file in front of it, like "sh start_project.sh ...".

Cool thanks it works i changed my "Custom Action" into

image2015-1-26 16:35:24.png

and now it works...

Is it possible that the script is doing what it is supposed to, but returning some sort of error code that you can't see when executing directly from the command line?

No the Script isn't doing anything. Is seems to be that sc scripts doesn't work with Source tree for Windows or I'am doing something fundamentally wrong. So I also tried other scripts and got the same result.

I can launch .sh scripts by using the full path in a bat file. So the work around for me was a bat file like this

C:\<Pathtoyourscripit>\PruneTags.sh

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

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...

546 views 1 2
Read article

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