@@ -190,10 +190,6 @@ func Open(s storage.Storer, worktree billy.Filesystem) (*Repository, error) {
190
190
// Clone a repository into the given Storer and worktree Filesystem with the
191
191
// given options, if worktree is nil a bare repository is created. If the given
192
192
// 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.
197
193
func Clone (s storage.Storer , worktree billy.Filesystem , o * CloneOptions ) (* Repository , error ) {
198
194
return CloneContext (context .Background (), s , worktree , o )
199
195
}
@@ -203,7 +199,7 @@ func Clone(s storage.Storer, worktree billy.Filesystem, o *CloneOptions) (*Repos
203
199
// given storer is not empty ErrRepositoryAlreadyExists is returned.
204
200
//
205
201
// 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
207
203
// transport operations.
208
204
func CloneContext (
209
205
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)
398
394
// ErrRepositoryAlreadyExists is returned.
399
395
//
400
396
// 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
402
398
// transport operations.
403
399
//
404
400
// TODO(mcuadros): move isBare to CloneOptions in v5
@@ -1101,7 +1097,7 @@ func (r *Repository) Fetch(o *FetchOptions) error {
1101
1097
// no changes to be fetched, or an error.
1102
1098
//
1103
1099
// 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
1105
1101
// transport operations.
1106
1102
func (r * Repository ) FetchContext (ctx context.Context , o * FetchOptions ) error {
1107
1103
if err := o .Validate (); err != nil {
@@ -1128,7 +1124,7 @@ func (r *Repository) Push(o *PushOptions) error {
1128
1124
// FetchOptions.RemoteName.
1129
1125
//
1130
1126
// 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
1132
1128
// transport operations.
1133
1129
func (r * Repository ) PushContext (ctx context.Context , o * PushOptions ) error {
1134
1130
if err := o .Validate (); err != nil {
0 commit comments