Enable bitbucket end-of-line check for push on project level

We want to establish an end-of-line check on all pushes to our Bitbucket server, to prevent Windows line-endings from being pushed to the repo.

I've found the stash-eol-check hook plugin, which provide this functionality on the repository level. However, it is a bit cumbersome to repeat the same configuration for each and every repository manually. 

Is there a better way, to achieve this on project level or server level?

1 answer

0 vote

By chance, project level administration has just been introduced in Bitbucket Server 5.2:

"[...] Until 5.2, things like hooks, branch permissions and model, and pull request merge checks had to be configured each time a new repository was created. For teams that create hundreds (or even thousands) of repositories this can lead to wasted time or compromising on security requirements by granting admin permissions to people that might not necessarily need it. With the introduction of project level administration, these settings can now be applied to all repositories in a project at once, making implementing and enforcing your team's preferred workflow much easier. [...]"

So besides requiring an update to Bitbucket Server 5.2, this should allow configuration of your hook at the project level in a straight forward fashion.

Unfortunately the project level configuration for this hook is disabled in Bitbucket Server 5.2. However there might be a chance for an update that fixes this. 

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 Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

112 views 0 3
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