2
0
Commit Graph

42 Commits

Author SHA1 Message Date
Lunny Xiao
7f07db81aa Add API to list tags (#5850)
* Add API to list tags

* update dependency gitea sdk vendor

* fix swagger generation

* fix swagger

* add tests

* update code.gitea.io/git vendor
2019-02-07 12:00:52 +00:00
Lanre Adelowo
4bc1432fe5 Display the branch name in the commit view (#5950)
* add branch info

* Remove blank lines

* Remove blank lines

* update git dependency
2019-02-05 21:47:01 +00:00
Lunny Xiao
67c99c9f66 Add single commit API support (#5843)
* add single commit API support
2019-02-02 22:35:17 -05:00
Michael Kuhn
b6c178b443 Explicitly disable Git credential helper (#5367)
* 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
24321375cd

* Update git module
2018-11-28 09:00:25 +02:00
Lauris BH
4d8d683999 Implement git refs API for listing references (branches, tags and other) (#5354)
* Inital routes to git refs api

* Git refs API implementation

* Update swagger

* Fix copyright

* Make swagger happy add basic test

* Fix test

* Fix test again :)
2018-11-27 16:52:20 -05:00
Peter Hoffmann
1536c26d75 Add raw blob endpoint to get objects by SHA ID (#5334)
* Add raw blob endpoint

This should make it possible to download raw blobs directly from
/:repo/:username/raw/blob/:sha1 URLs.

* fix: Make it work

* As an SHA-ID is no path getRefNameFromPath can't be used to verify
file specifying parameter
* added relevant change in go-gitea/git #132

Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>

* Update Gopkg.lock

Can't update all vendors due to errors

Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>

* style: Add Gitea copyright header

* feat: Added integration test for /repo/u/r/raw/blob

* fix: correct year in copyright header
2018-11-18 13:45:40 -05:00
Lauris BH
7cf855f896 Add push webhook support for mirrored repositories (#4127) 2018-09-06 22:06:09 -04:00
David Schneiderbauer
1900974f89 update git vendor (#4059) 2018-05-27 21:47:34 +03:00
Antoine GIRARD
5cc76d3cd5 Migrate to dep (#3972)
* Update makefile to use dep

* Migrate to dep

* Fix some deps

* Try to find a better version for golang.org/x/net

* Try to find a better version for golang.org/x/oauth2
2018-05-21 15:34:20 +03:00
Tris Forster
995b2d290e Symlink icons (#1416) (#3826)
* Updated vendor code for code.gitea.io/git

* Display symlinks correctly for files and directories

* Added symlink tests

* Applied silverwinds stylesheet patch

Signed-off-by: Tris Forster <tris.git@shoddynet.org>
2018-05-01 10:04:36 +03:00
Ethan Koenig
7f39bc161d Update code.gitea.io/git (#3482) 2018-02-10 20:19:26 +02:00
Lauris BH
5b5327a0bf Change how merged PR commit info are prepared (#3368)
* Change how merged PR commits and diff are made

* Update code.gitea.io/git dependency

* Fix typo

* Remove unneeded local variable
2018-01-19 08:18:51 +02:00
Sandro Santilli
3bd79f93a3 Serve .patch for pull requests (#3305)
* Serve .patch for pull requests

Closes #3259
Updates "git" module, for GetFormatPatch

* Handle io.Copy error
2018-01-07 15:10:20 +02:00
Ethan Koenig
9bfebc8336 Update code.gitea.io/git (#3251) 2017-12-22 09:00:30 +02:00
Bo-Yi Wu
381252c8f0 chore: upgrade gitea/git version (#3240)
ref: https://github.com/go-gitea/gitea/pull/3190
2017-12-19 21:41:29 -06:00
Ethan Koenig
e2b3436d49 Update code.gitea.io/git (#3137) 2017-12-11 10:23:34 +08:00
Duncan Ogilvie
7bc387bffe Memory usage improvements (#3013)
* govendor update code.gitea.io/git

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>

* Greatly improve memory usage

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
2017-11-29 09:50:39 +08:00
Lauris BH
95f0cf8672 Update vendor git (#2765) 2017-10-23 16:36:14 +03:00
Lauris BH
210d1b3d17 Sort repository tree entries in natural way (#2506)
* Sort repository tree entries in natural way

* Fix sort for different length strings with first parts equal

* Improve test case

* Refactor return statements

* Update gitea/git dependency
2017-09-19 11:37:03 +03:00
Lauris BH
3607eee6d4 update code.gitea.io/git in vendor to fix #2245 (#2250) 2017-08-03 21:48:36 +08:00
Lauris BH
a86f6acde1 Update code.gitea.io/git dependency (#2149) 2017-07-12 22:35:21 -05:00
Bo-Yi Wu
46ecf57119 upgrade git source code. (#2094)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-01 23:05:01 +08:00
Jonas Östanbäck
fcb01b3be6 Update git module (#2074) 2017-06-28 22:43:58 +08:00
Lauris BH
7707654635 update git module (#2037) 2017-06-23 08:06:43 +08:00
Ethan Koenig
687259f85e Update code.gitea.io/git (#2014) 2017-06-20 13:05:32 +08:00
Ethan Koenig
cd15e585f2 Update code.gitea.io/git (#1998) 2017-06-18 08:30:23 +08:00
Antoine GIRARD
187039da3a Update code.gitea.io/git 2017-06-06 19:36:48 +02:00
Ethan Koenig
76f232d42b Update code.gitea.io/git (#1849) 2017-06-01 09:43:11 +08:00
Ethan Koenig
91b8ad44ac Update code.gitea.io/git (#1824)
* Update code.gitea.io/git

* Update function calls

* govendor fetch
2017-05-30 04:32:01 -05:00
Bo-Yi Wu
8f115fcf2d fix: tag contain character ) will http 500 on release page (#1670) 2017-05-04 23:38:34 +08:00
Lunny Xiao
0fae6c1c55 update git which fixes #1133 (#1614) 2017-04-28 16:20:58 +02:00
Mura Li
e6f879d70a Fix race when running commands with timeout (#1465)
Update vendored module code.gitea.io/git
2017-04-07 19:23:39 -07:00
Antoine GIRARD
0a2f193fd8 GPG commit validation (#1150)
* GPG commit validation

* Add translation

+ some little fix

* Move hash calc after retrieving of potential key + missing translation

* Add some little test
2017-03-22 18:43:54 +08:00
Lunny Xiao
fbbc585cea Take back control of hooks (#1006)
* git: delegate all server-side Git hooks (#1623)

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts
2017-02-23 11:40:44 +08:00
Zsombor
0a559ccafc Add checkbox to search for all the branches by commit message (#813)
and updating the vendor directory
2017-02-05 22:43:28 +08:00
Lunny Xiao
4ba32ccb16 bug fix release 2017-01-09 21:54:03 +01:00
Lunny Xiao
4875240bbc Make releases faster than before and resolved #490 (#588)
* make releases faster than before and resolved #490

* fix comment
2017-01-06 09:51:15 +08:00
Sl@ny
d6887aa9e7 Implementation of Folder Jumping 2016-12-28 18:09:52 +01:00
Lunny Xiao
918088c375 update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
Thibault Meyer
623937cc48 Upgrade vendor "git" (#175) 2016-11-15 23:24:08 +08:00
Thibault Meyer
dcdff45435 Upgrade vendor "git" (#161) 2016-11-12 12:09:25 +01:00
Sandro Santilli
acb138c244 Update import paths from github.com/go-gitea to code.gitea.io (#135)
- 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
2016-11-10 17:24:48 +01:00