【问题标题】:TeamCity - keeping Git submodule up to date?TeamCity - 让 Git 子模块保持最新?
【发布时间】:2012-10-16 14:00:15
【问题描述】:

我有一个包含子模块的 Git 存储库。

此存储库在 TeamCity 中有各种构建配置,这些配置依赖于子模块上的代码。 TeamCity 有没有办法检测到子模块存储库已更新,然后继续更新子模块,更新父存储库以指向最新的子模块并构建代码?

我想自动确定子模块上的提交是否会破坏父存储库。

【问题讨论】:

    标签: git continuous-integration teamcity git-submodules


    【解决方案1】:

    您可以添加一个步骤,该步骤将从父 repo 中检查子模块是否有任何修改过的文件。

    以“Git tells me my subproject is dirty, what does this mean?”为例。

    确保子模块未配置您的父仓库以忽略内部更改:“Git: can I suppress listing of 'modified content'/dirty submodule entries in status, diff, etc?”。

    【讨论】:

      猜你喜欢
      • 2021-04-10
      • 1970-01-01
      • 2012-02-29
      • 1970-01-01
      • 1970-01-01
      • 2016-09-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多