Git hook scripts have wrong name?

This question is in reference to Atlassian Documentation: Git hook scripts are not executing

In our case, the files had the wrong name, so we had to rename them. 

find . -name 20_stash_callback -type f -exec rename 20_stash_callback 20_bitbucket_callback {} \;


It seems like this was the case even for repos created after we upgraded. How is this filename determined and how can we make it so new repos will have the correct filename?

1 answer

1 accepted

1 vote

Hi Adam, 

there seems to have been a mistake in the KB article you linked. I've added a note about the naming of the scripts.

In current versions of Bitbucket, the hook scripts will be called 20_stash_callback and should not be renamed. Bitbucket will execute the 20_stash_callback script.

I hope this helps, 


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,755 views 1 5
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