Skip to content

Commit 3d647a5

Browse files
authored
Update modules/git/repo_commit.go
1 parent 2a5cd78 commit 3d647a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (repo *Repository) searchCommits(id SHA1, opts SearchCommitsOptions) ([]*Co
161161
// add previous arguments except for --grep and --all
162162
hashCmd.AddArguments(args...)
163163
// add keyword as <commit>
164-
hashCmd.AddArguments("--end-of-options", ""+v+"")
164+
hashCmd.AddArguments("--end-of-options", v)
165165

166166
// search with given constraints for commit matching sha hash of v
167167
hashMatching, _, err := hashCmd.RunStdBytes(&RunOpts{Dir: repo.Path})

0 commit comments

Comments
 (0)