diff options
author | Mihir Joshi <mihir67mj@gmail.com> | 2024-01-11 08:34:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 11:04:45 +0800 |
commit | 669bbbaf243ae1e65d6667eb91d2a963b526ebd7 (patch) | |
tree | 33c78579aaf4aaf69fb97d622764e3eb31c9081f /modules | |
parent | c65f8623e64199844a7862b52ee2514253f0d395 (diff) | |
download | gitea-669bbbaf243ae1e65d6667eb91d2a963b526ebd7.tar.gz gitea-669bbbaf243ae1e65d6667eb91d2a963b526ebd7.zip |
Integration Test for Commit Search containing Square Brackets (#28751)
Integration test for #28744
Change keywords commit search flag from `-F` to `--fixed-strings` for
readability
Diffstat (limited to 'modules')
-rw-r--r-- | modules/git/repo_commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index a69229055f..9c9ee7768f 100644 --- a/modules/git/repo_commit.go +++ b/modules/git/repo_commit.go @@ -143,7 +143,7 @@ func (repo *Repository) searchCommits(id ObjectID, opts SearchCommitsOptions) ([ } // interpret search string keywords as string instead of regex - cmd.AddArguments("-F") + cmd.AddArguments("--fixed-strings") // add remaining keywords from search string // note this is done only for command created above |