Skip to content

Commit 0b2b4c7

Browse files
authored
Combine end-of-options and separator arguments
1 parent 594bb81 commit 0b2b4c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

repo_commit.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ func (r *Repository) Log(rev string, opts ...LogOptions) ([]*Commit, error) {
237237
if opt.RegexpIgnoreCase {
238238
cmd.AddArgs("--regexp-ignore-case")
239239
}
240-
cmd.AddArgs("--end-of-options", rev)
241-
cmd.AddArgs("--")
240+
cmd.AddArgs("--end-of-options", rev, "--")
242241
if opt.Path != "" {
243242
cmd.AddArgs(escapePath(opt.Path))
244243
}

0 commit comments

Comments
 (0)