aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/command.go
Commit message (Collapse)AuthorAgeFilesLines
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-271-137/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move code.gitea.io/git to code.gitea.io/gitea/modules/git * fix imports * fix fmt * fix misspell * remove wrong tests data * fix unit tests * fix tests * fix tests * fix tests * fix tests * fix tests * enable Debug to trace the failure tests * fix tests * fix tests * fix tests * fix tests * fix tests * comment commit count tests since git clone depth is 50 * fix tests * update from code.gitea.io/git * revert change to makefile
* Explicitly disable Git credential helper (#5367)Michael Kuhn2018-11-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Explicitly disable Git credential helper If the user running Gitea has configured a credential helper, Git credentials might leak out of Gitea. There are two problems with credential helpers when combined with Gitea: 1. Credentials entered by a user when doing a migration or setting up a mirror will end up in the credential store. In the worst case, this is the plain text file ~/.git-credentials. 2. Credentials in the credential store will be used for migrations and mirrors by all users. For example, if user A sets up a mirror, their credentials will be stored. If user B later sets up a mirror from the same host and does not enter any credentials, user A's credentials will be used. This PR prepends -c credential.helper= to all Git commands to clear the list of helpers. This requires at least Git version 2.9, as previous versions will try to load an empty helper instead. For more details, see https://github.com/git/git/commit/24321375cda79f141be72d1a842e930df6f41725 * Update git module
* Serve .patch for pull requests (#3305)Sandro Santilli2018-01-071-1/+4
| | | | | | | | | * Serve .patch for pull requests Closes #3259 Updates "git" module, for GetFormatPatch * Handle io.Copy error
* Update code.gitea.io/git (#1824)Ethan Koenig2017-05-301-1/+5
| | | | | | | | * Update code.gitea.io/git * Update function calls * govendor fetch
* Fix race when running commands with timeout (#1465)Mura Li2017-04-071-21/+6
| | | Update vendored module code.gitea.io/git
* update code.gitea.io/git (#450)Lunny Xiao2016-12-221-5/+8
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-0/+139
- Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path