Skip to content

Commit 9511a08

Browse files
committed
111
1 parent 1fc401d commit 9511a08

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

repo_remote.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ func (r *Repository) RemoteRemove(ctx context.Context, name string, opts ...Remo
129129
}
130130

131131
args := []string{"remote", "remove", "--end-of-options", name}
132-
133132
_, err := exec(ctx, r.path, args, opt.Envs)
134133
if err != nil {
135134
if strings.Contains(err.Error(), "error: No such remote") ||
@@ -157,7 +156,6 @@ func (r *Repository) Remotes(ctx context.Context, opts ...RemotesOptions) ([]str
157156
}
158157

159158
args := []string{"remote", "--end-of-options"}
160-
161159
stdout, err := exec(ctx, r.path, args, opt.Envs)
162160
if err != nil {
163161
return nil, err

repo_tag.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ func (r *Repository) CreateTag(ctx context.Context, name, rev string, opts ...Cr
199199
}
200200

201201
args := []string{"tag"}
202-
203202
var envs []string
204203
if opt.Annotated {
205204
args = append(args, "-a", name)
@@ -212,7 +211,6 @@ func (r *Repository) CreateTag(ctx context.Context, name, rev string, opts ...Cr
212211
args = append(args, "--end-of-options", name)
213212
}
214213
args = append(args, rev)
215-
216214
envs = append(envs, opt.Envs...)
217215
_, err := exec(ctx, r.path, args, envs)
218216
return err
@@ -234,7 +232,6 @@ func (r *Repository) DeleteTag(ctx context.Context, name string, opts ...DeleteT
234232
}
235233

236234
args := []string{"tag", "--delete", "--end-of-options", name}
237-
238235
_, err := exec(ctx, r.path, args, opt.Envs)
239236
return err
240237
}

0 commit comments

Comments
 (0)