mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 03:01:48 +00:00
Don't put blobs that only contain hashes when incrementally uploading.
This commit is contained in:
@@ -350,7 +350,10 @@ func StoreManifest(
|
||||
wg := sync.WaitGroup{}
|
||||
ch := make(chan error, len(extManifest.Contents))
|
||||
for name, entry := range extManifest.Contents {
|
||||
if entry.GetType() == Type_ExternalFile {
|
||||
// Upload external entries (those that were decided as ineligible for being stored inline).
|
||||
// If the entry in the original manifest is already an external reference, there's no need
|
||||
// to externalize it (and no way for us to do so, since the entry only contains the blob name).
|
||||
if entry.GetType() == Type_ExternalFile && manifest.Contents[name].GetType() == Type_InlineFile {
|
||||
wg.Go(func() {
|
||||
err := backend.PutBlob(ctx, string(entry.Data), manifest.Contents[name].Data)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user