@@ -190,10 +190,6 @@ func Open(s storage.Storer, worktree billy.Filesystem) (*Repository, error) {
190190// Clone a repository into the given Storer and worktree Filesystem with the
191191// given options, if worktree is nil a bare repository is created. If the given
192192// storer is not empty ErrRepositoryAlreadyExists is returned.
193- //
194- // The provided Context must be non-nil. If the context expires before the
195- // operation is complete, an error is returned. The context only affects to the
196- // transport operations.
197193func Clone (s storage.Storer , worktree billy.Filesystem , o * CloneOptions ) (* Repository , error ) {
198194 return CloneContext (context .Background (), s , worktree , o )
199195}
@@ -203,7 +199,7 @@ func Clone(s storage.Storer, worktree billy.Filesystem, o *CloneOptions) (*Repos
203199// given storer is not empty ErrRepositoryAlreadyExists is returned.
204200//
205201// The provided Context must be non-nil. If the context expires before the
206- // operation is complete, an error is returned. The context only affects to the
202+ // operation is complete, an error is returned. The context only affects the
207203// transport operations.
208204func CloneContext (
209205 ctx context.Context , s storage.Storer , worktree billy.Filesystem , o * CloneOptions ,
@@ -398,7 +394,7 @@ func PlainClone(path string, isBare bool, o *CloneOptions) (*Repository, error)
398394// ErrRepositoryAlreadyExists is returned.
399395//
400396// The provided Context must be non-nil. If the context expires before the
401- // operation is complete, an error is returned. The context only affects to the
397+ // operation is complete, an error is returned. The context only affects the
402398// transport operations.
403399//
404400// TODO(mcuadros): move isBare to CloneOptions in v5
@@ -1101,7 +1097,7 @@ func (r *Repository) Fetch(o *FetchOptions) error {
11011097// no changes to be fetched, or an error.
11021098//
11031099// The provided Context must be non-nil. If the context expires before the
1104- // operation is complete, an error is returned. The context only affects to the
1100+ // operation is complete, an error is returned. The context only affects the
11051101// transport operations.
11061102func (r * Repository ) FetchContext (ctx context.Context , o * FetchOptions ) error {
11071103 if err := o .Validate (); err != nil {
@@ -1128,7 +1124,7 @@ func (r *Repository) Push(o *PushOptions) error {
11281124// FetchOptions.RemoteName.
11291125//
11301126// The provided Context must be non-nil. If the context expires before the
1131- // operation is complete, an error is returned. The context only affects to the
1127+ // operation is complete, an error is returned. The context only affects the
11321128// transport operations.
11331129func (r * Repository ) PushContext (ctx context.Context , o * PushOptions ) error {
11341130 if err := o .Validate (); err != nil {
0 commit comments