diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index 6fc306362..f69ecb88b 100644 --- a/modules/git/repo_commit.go +++ b/modules/git/repo_commit.go @@ -148,6 +148,9 @@ func (repo *Repository) searchCommits(id SHA1, opts SearchCommitsOptions) ([]*Co cmd.AddArguments("--all") } + // interpret search string keywords as string instead of regex + cmd.AddArguments("-F") + // add remaining keywords from search string // note this is done only for command created above if len(opts.Keywords) > 0 {