diff --git a/pkg/git/fetch.go b/pkg/git/fetch.go index 999ca6568..8725045d3 100644 --- a/pkg/git/fetch.go +++ b/pkg/git/fetch.go @@ -9,6 +9,7 @@ import ( gogit "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/plumbing" + "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" "github.com/go-git/go-git/v5/plumbing/transport" "github.com/pkg/errors" ) @@ -18,6 +19,13 @@ type Fetcher struct { Keychain GitKeychain } +func init() { + //remove multi_ack and multi_ack_detailed from unsupported capabilities to enable Azure DevOps git support + transport.UnsupportedCapabilities = []capability.Capability{ + capability.ThinPack, + } +} + func (f Fetcher) Fetch(dir, gitURL, gitRevision, metadataDir string) error { f.Logger.Printf("Cloning %q @ %q...", gitURL, gitRevision) auth, err := f.Keychain.Resolve(gitURL)