Skip to content

Commit 56b1bcb

Browse files
authored
Refactor command arguments for clarity
1 parent 46d1d61 commit 56b1bcb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

repo_pull.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ func MergeBase(repoPath, base, head string, opts ...MergeBaseOptions) (string, e
3232

3333
stdout, err := NewCommand("merge-base").
3434
AddOptions(opt.CommandOptions).
35-
AddArgs("--end-of-options").
36-
AddArgs(base, head).
37-
RunInDirWithTimeout(opt.Timeout, repoPath)
35+
AddArgs(
36+
"--end-of-options",
37+
base,
38+
head,
39+
).RunInDirWithTimeout(opt.Timeout, repoPath)
3840
if err != nil {
3941
if strings.Contains(err.Error(), "exit status 1") {
4042
return "", ErrNoMergeBase

0 commit comments

Comments
 (0)