[submodules] Don't update .gitmodules for source-of-truth submodules
If a repository has submodules as its source-of-truth, we shouldn't add
`ignore` and `name` fields for it in .gitmodules since those fields are
only used for submodules that are still managed by Jiri. Setting those
fields causes spurious .gitmodules diffs, which results in .gitmodules
being considered affected during build graph affectedness analysis in
presubmit, which in turn prevents builds from being skipped, even when
the build graph is unaffected, because fint's affectedness logic doesn't
know how to interpret .gitmodules being changed.
Bug: 326595281
Change-Id: I88677a5a0c34d0202522baa31811539f97029d9c
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/1021254
Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Reviewed-by: Rahul Bangar <rahulbn@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
1 file changed