JGitFlow maven 插件不会将发布分支推送到远程
JGitFlow maven plugin doesn't push release branch to remote
我正在使用 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>
当我 运行 mvn jgitflow:feature-start
并输入分支名称(比如 testSomething
)时,它立即被推送到原点。我可以通过列出分支 git branch -a
:
来看到
* feature/testSomething
remotes/origin/feature/testSomething
到目前为止一切顺利。但现在我在做 mvn jgitflow:release-start
。我输入新版本、下一个开发版本和 运行 完成目标。我在新创建的发布分支上,但这个分支没有被推送到远程。我做错了什么?这是故意的吗?
事实证明,我们的 git 存储库只能通过拉取请求进行修改,因此推送无效。有点遗憾的是插件忽略了推送的 return 值并且至少没有发出警告。
我正在使用 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>
当我 运行 mvn jgitflow:feature-start
并输入分支名称(比如 testSomething
)时,它立即被推送到原点。我可以通过列出分支 git branch -a
:
* feature/testSomething
remotes/origin/feature/testSomething
到目前为止一切顺利。但现在我在做 mvn jgitflow:release-start
。我输入新版本、下一个开发版本和 运行 完成目标。我在新创建的发布分支上,但这个分支没有被推送到远程。我做错了什么?这是故意的吗?
事实证明,我们的 git 存储库只能通过拉取请求进行修改,因此推送无效。有点遗憾的是插件忽略了推送的 return 值并且至少没有发出警告。