Commit Graph
7 Commits
Author SHA1 Message Date
wxiaoguangandGitHub 124b072f0b Remove git.Command.Run and git.Command.RunInDir* (#19280)
Follows #19266, #8553, Close #18553, now there are only three `Run..(&RunOpts{})` functions.
 * before: `stdout, err := RunInDir(path)`
 * now: `stdout, _, err := RunStdString(&git.RunOpts{Dir:path})`
2022-04-01 10:55:30 +08:00
6543andGitHub 3043eb36bf Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
zeripathandGitHub 5cb0c9aa0d Propagate context and ensure git commands run in request context (#17868)
This PR continues the work in #17125 by progressively ensuring that git
commands run within the request context.

This now means that the if there is a git repo already open in the context it will be used instead of reopening it.

Signed-off-by: Andrew Thornton <[email protected]>
2022-01-19 23:26:57 +00:00
Lunny XiaoandGitHub 719bddcd76 Move repository model into models/repo (#17933)
* Some refactors related repository model

* Move more methods out of repository

* Move repository into models/repo

* Fix test

* Fix test

* some improvements

* Remove unnecessary function
2021-12-10 09:27:50 +08:00
GustedandGitHub 4e7ca946da Use *PushUpdateOptions as receiver (#17724) 2021-11-24 04:08:13 -05:00
Lunny XiaoandGitHub a420beda2a Fix a bug on refactoring (#13373) 2020-10-31 23:42:54 +08:00
4df2ed29f2 Refactor: Move PushUpdateOptions (#13363)
Co-authored-by: Antoine GIRARD <[email protected]>
2020-10-30 22:59:02 +01:00