-
Bug
-
Resolution: Fixed
-
Low
-
4.13.0
-
2
-
Severity 3 - Minor
-
14
-
This bug report relates to a problem seen in the bitbucket-submodule-safe-hook as described here: https://bitbucket.org/atlassianlabs/bitbucket-submodule-safe-hook/issues/1/doesnt-seemt-to-find-the-parent-commit
That hook implements a pre-receive repository hook and for each sub-module pushed, if the submodule repository resides on the same Bitbucket Server instance, it will look up the commit being referenced. If it cannot find the commit in the submodule the push will be rejected. It uses CommitService.getCommit() to do this. When Git 2.11, 2.12 or 2.13 is installed on the server CommitService.getCommit() fails to return commits that are known to exist in the submodule repository.
This problem appears specific to the case where the repository passed to "CommitService.getCommit()" is different to the repository being pushed to.
Note: This only impactes Bitbucket Server 4.13 and later, since versions prior do not support Git 2.11.
Work Around
Use Git 2.10 (or other supported version earlier than 2.11) on the Bitbucket Server instance.
- is caused by
-
BSERV-9388 Pre-receive hooks and branch permissions reject valid pushes on git 2.11
- Closed
- is incorporated by
-
BSERV-10437 Pre-receive hooks can only read objects from the repository being pushed to on Git 2.11+
- Closed
- mentioned in
-
Page Loading...