mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
Fix a bug preventing new manifests from being committed to S3.
This commit is contained in:
@@ -553,6 +553,10 @@ func (s3 *S3Backend) HasAtomicCAS(ctx context.Context) bool {
|
||||
func (s3 *S3Backend) checkManifestPrecondition(
|
||||
ctx context.Context, name string, opts ModifyManifestOptions,
|
||||
) error {
|
||||
if opts.IfUnmodifiedSince.IsZero() && opts.IfMatch == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
stat, err := s3.client.StatObject(ctx, s3.bucket, manifestObjectName(name),
|
||||
minio.GetObjectOptions{})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user