@@ -63,7 +63,7 @@ func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, opts *g
6363 repo , err := git2go .Clone (url , path , & git2go.CloneOptions {
6464 FetchOptions : & git2go.FetchOptions {
6565 DownloadTags : git2go .DownloadTagsNone ,
66- RemoteCallbacks : RemoteCallbacks (opts ),
66+ RemoteCallbacks : RemoteCallbacks (ctx , opts ),
6767 },
6868 CheckoutBranch : c .Branch ,
6969 })
@@ -92,7 +92,7 @@ func (c *CheckoutTag) Checkout(ctx context.Context, path, url string, opts *git.
9292 repo , err := git2go .Clone (url , path , & git2go.CloneOptions {
9393 FetchOptions : & git2go.FetchOptions {
9494 DownloadTags : git2go .DownloadTagsAll ,
95- RemoteCallbacks : RemoteCallbacks (opts ),
95+ RemoteCallbacks : RemoteCallbacks (ctx , opts ),
9696 },
9797 })
9898 if err != nil {
@@ -115,7 +115,7 @@ func (c *CheckoutCommit) Checkout(ctx context.Context, path, url string, opts *g
115115 repo , err := git2go .Clone (url , path , & git2go.CloneOptions {
116116 FetchOptions : & git2go.FetchOptions {
117117 DownloadTags : git2go .DownloadTagsNone ,
118- RemoteCallbacks : RemoteCallbacks (opts ),
118+ RemoteCallbacks : RemoteCallbacks (ctx , opts ),
119119 },
120120 })
121121 if err != nil {
@@ -146,7 +146,7 @@ func (c *CheckoutSemVer) Checkout(ctx context.Context, path, url string, opts *g
146146 repo , err := git2go .Clone (url , path , & git2go.CloneOptions {
147147 FetchOptions : & git2go.FetchOptions {
148148 DownloadTags : git2go .DownloadTagsAll ,
149- RemoteCallbacks : RemoteCallbacks (opts ),
149+ RemoteCallbacks : RemoteCallbacks (ctx , opts ),
150150 },
151151 })
152152 if err != nil {
0 commit comments