Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,605
Community Members
 
Community Events
185
Community Groups

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

6 answers

1 accepted

0 votes
Answer accepted
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 26, 2015

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

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

Hello,

I'am learning about git and sourcetree, I tried to make a custom action to send the command plotgitsch -ifirefox to see the imaging diff about kicad shematic.

Could you tell me more how to create the script and how can I link this script with the custom action..

I tried this on command bash it works fine, but when I define the custom actions it is not working.Working bash.PNG

sourcetree fail1.PNG

Could you help me please?

Thanks a lot.

Maxime.

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.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 23, 2015

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events