gitea/modules/repository
wxiaoguang dc9cebdf45
Use `--message=%s` for git commit message ()
Close  

`git commit` message option _only_ supports 4 formats (well, only ....):
* `"commit", "-m", msg`
* `"commit", "-m{msg}"`  (no space)
* `"commit", "--message", msg`
* `"commit", "--message={msg}"`

The long format with `=` is the best choice, and it's documented in `man
git-commit`:

`-m <msg>, --message=<msg> ...`

ps: I would suggest always use long format option for git command, as
much as possible.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
collaborator.go Always reuse transaction ()
collaborator_test.go Rename `repo.GetOwner` to `repo.LoadOwner` ()
commits.go Add context cache as a request level cache ()
commits_test.go Add context cache as a request level cache ()
create.go Rename `repo.GetOwner` to `repo.LoadOwner` ()
create_test.go Map OIDC groups to Orgs/Teams ()
delete.go Rename `repo.GetOwner` to `repo.LoadOwner` ()
env.go Implement actions ()
fork.go Implement FSFE REUSE for golang files ()
generate.go Repositories: by default disable all units except code and pulls on forks ()
generate_test.go Implement FSFE REUSE for golang files ()
hooks.go Implement FSFE REUSE for golang files ()
init.go Use `--message=%s` for git commit message ()
main_test.go Implement FSFE REUSE for golang files ()
push.go Implement FSFE REUSE for golang files ()
repo.go Add context cache as a request level cache ()
temp.go Implement FSFE REUSE for golang files ()