Clear git metadata from PATCH'd manifests.

This commit is contained in:
Catherine
2025-12-24 02:18:09 +00:00
parent a4bfa82388
commit 96f210d253
+3
View File
@@ -182,6 +182,9 @@ func PartialUpdateFromArchive(
// `*Manifest` objects, which should never be mutated.
newManifest := &Manifest{}
proto.Merge(newManifest, oldManifest)
newManifest.RepoUrl = nil
newManifest.Branch = nil
newManifest.Commit = nil
if err := ApplyTarPatch(newManifest, reader, parents); err != nil {
return nil, err
} else {