Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: buildkite/agent
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e35a24d81453aa9d4e6b32ffd2d28ae8b39297fe
Choose a base ref
..
head repository: buildkite/agent
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 286959cdb388b5371c4f48ef512a5637b8679657
Choose a head ref
Showing with 1 addition and 0 deletions.
  1. +1 −0 internal/job/git.go
1 change: 1 addition & 0 deletions internal/job/git.go
Original file line number Diff line number Diff line change
@@ -145,6 +145,7 @@ func gitFetch(ctx context.Context, sh shellRunner, gitFetchFlags, repository str
// When using git mirrors, the existing checkout directory might have a
// reference to an object that it expects in the mirror, but the mirror
// no longer contains it (for whatever reason).
// See the NOTE under --shared at https://git-scm.com/docs/git-clone.
if strings.HasPrefix(err.Error(), "fatal: bad object") {
return &gitError{error: err, Type: gitErrorFetchBadObject}
}