简体   繁体   English

JGitFlow maven插件不会将release分支推送到远程

[英]JGitFlow maven plugin doesn't push release branch to remote

I'm using jGitFlow plugin as follows: 我正在使用jGitFlow插件如下:

<plugin>
    <groupId>external.atlassian.jgitflow</groupId>
    <artifactId>jgitflow-maven-plugin</artifactId>
    <version>1.0-m5.1</version>
    <configuration>
        <pushFeatures>true</pushFeatures>
        <pushReleases>true</pushReleases>
        <pushHotfixes>true</pushHotfixes>
        <noDeploy>true</noDeploy>
    </configuration>
</plugin>

When I run mvn jgitflow:feature-start and enter branch name (say testSomething ) it got pushed to origin immediately. 当我运行mvn jgitflow:feature-start并输入分支名称(比如testSomething )时,它立即被推送到原点。 I can see that by listing branches git branch -a : 我可以看到通过列出分支git branch -a

* feature/testSomething
  remotes/origin/feature/testSomething

So far so good. 到现在为止还挺好。 But now I'm doing mvn jgitflow:release-start . 但现在我正在做mvn jgitflow:release-start I enter the new version, next development version and the goal runs to completion. 我输入新版本,下一个开发版本,目标运行完成。 I'm on the newly created release branch but this branch is not pushed to remote. 我在新创建的发布分支上,但是这个分支没有被推送到远程。 What I'm doing wrong? 我做错了什么? Is this intended? 这是有意的吗?

It turned out that our git repository can be only amended via pull-requests and hence the push didn't work. 事实证明,我们的git存储库只能通过pull-requests进行修改,因此推送不起作用。 It's a bit shame the plugin ignores the return value of the push and doesn't at least emit a warning. 这个插件忽略了推送的返回值并且至少不会发出警告,这有点遗憾。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM