diff options
Diffstat (limited to 'internal/git/pack.go')
| -rw-r--r-- | internal/git/pack.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/git/pack.go b/internal/git/pack.go index 401ee64..02033d6 100644 --- a/internal/git/pack.go +++ b/internal/git/pack.go @@ -8,7 +8,6 @@ import ( "encoding/binary" "fmt" "io" - "log" ) // GitStorage interface for storage backends that can provide Git objects @@ -44,14 +43,12 @@ func (pg *PackGenerator) GeneratePack(ctx context.Context, repo string, wants [] for _, sha := range objectSHAs { objData, err := pg.storage.GetObject(ctx, repo, sha) if err != nil { - log.Printf("Failed to read object %s: %v", sha, err) - continue // Skip objects we can't read + return nil, fmt.Errorf("failed to read required object %s: %w", sha, err) } obj, err := ParseGitObject(objData, sha) if err != nil { - log.Printf("Failed to parse object %s: %v", sha, err) - continue // Skip objects we can't parse + return nil, fmt.Errorf("failed to parse required object %s: %w", sha, err) } objects = append(objects, obj) |
