stash hook to prevent unpushed submodules

Robbin Bonthond
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.
May 16, 2017

We use https://bitbucket.org/atlassianlabs/bitbucket-submodule-safe-hook heavily to prevent people from pushing a master when they haven't pushed changed submodules yet. 

Unfortunately it seems this hook has stopped working in bitbucket-server 4.14.5 and git 2.11.1, all pushes are now rejected.

Is there someone with enough java knowledge to see if this can be fixed somehow?

I've also filed https://getsupport.atlassian.com/servicedesk/customer/portal/24/SSP-22333

1 comment

Robbin Bonthond
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.
May 16, 2017

this seemed related to upgrading from git 2.10.0 to git 2.11.1, downgrading git makes these hooks working again.

Tim Black
Contributor
February 27, 2020

@Robbin Bonthond I'm curious where you are today with this functionality? Do you know, is there some version of this hook that is working for you with a modern Bitbucket? We're using Bitbucket SErver 6.10.1 now and I'm looking into adding this protection. 

Also, related is this feature request you may want to vote on: https://jira.atlassian.com/browse/BSERV-9660.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events