在PreReceiveRepositoryHook上的Bitbucket上找不到提交

问题描述 投票:0回答:1

我正在尝试验证PreReceiveRepositoryHook上的文件,并且一直关注atlassion站点(https://bitbucket.org/roadsidepicnic/atlassian-bitbucket-check-commits-hook)和githup项目(https://github.com/hmcmanus/yaml-validator-hook)中的示例,因为他们找不到刚刚提交的提交,所以都没有工作。其他人面临同样的问题?

CommitRequest commitReq = new CommitRequest.Builder(repository, refChange.getToHash()).build();
Commit com1 = commitService.getCommit(commitReq);
bitbucket-server bitbucket-api
1个回答
0
投票

Atlassian人帮助我解决了这个问题,这里是片段,有两种补救措施。选择以下选项之一:1。)将服务器上的git版本降级到2.10.2或更早版本。或者:2。)更新到Bitbucket Server 4.13.0或更高版本。要在第一个示例中执行#2,您将在该示例的pom.xml中调整这些值。由此:4.3.2 4.3.2对此:4.13.0 4.13.0

更多细节@ https://answers.atlassian.com/questions/46816348/commit-not-found-on-pre-receive-hook

© www.soinside.com 2019 - 2024. All rights reserved.