mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-08-17 09:26:04 +00:00
Clear git metadata from PATCH'd manifests.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user