aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-141-1/+4
|
* Fix local runs of ssh-requiring integration tests (#7855)zeripath2019-08-141-7/+11
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-141-4/+4
|
* Attempt to fix hook problem (#7854)zeripath2019-08-143-6/+18
|
* Check commit message hashes before making links (#7713)Gary Kim2019-08-144-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check commit message hashes before making links Previously, when formatting commit messages, anything that looked like SHA1 hashes was turned into a link using regex. This meant that certain phrases or numbers such as `777777` or `deadbeef` could be recognized as a commit even if the repository has no commit with those hashes. This change will make it so that anything that looks like a SHA1 hash using regex will then also be checked to ensure that there is a commit in the repository with that hash before making a link. Signed-off-by: Gary Kim <gary@garykim.dev> * Use gogit to check if commit exists This commit modifies the commit hash check in the render for commit messages to use gogit for better performance. Signed-off-by: Gary Kim <gary@garykim.dev> * Make code cleaner Signed-off-by: Gary Kim <gary@garykim.dev> * Use rev-parse to check if commit exists Signed-off-by: Gary Kim <gary@garykim.dev> * Add and modify tests for checking hashes in html link rendering Signed-off-by: Gary Kim <gary@garykim.dev> * Return error in sha1CurrentPatternProcessor Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Import Gitea log module Signed-off-by: Gary Kim <gary@garykim.dev> * Revert "Return error in sha1CurrentPatternProcessor" This reverts commit 28f561cac46ef7e51aa26aefcbe9aca4671366a6. Signed-off-by: Gary Kim <gary@garykim.dev> * Add debug logging to sha1CurrentPatternProcessor This will log errors by the git command run in sha1CurrentPatternProcessor if the error is one that was unexpected. Signed-off-by: Gary Kim <gary@garykim.dev>
* Import topics during migration (#7851)Antoine GIRARD2019-08-148-0/+34
| | | | | | | | * add GetTopics interface * CreateTopics * remove un-needed comment
* Update golangci-lint to v1.17.1 (#7848)techknowlogick2019-08-132-2/+5
|
* Update app.ini.sample (#7816)clavinet2019-08-131-1/+1
| | | grammar fix
* gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid ↵Antoine GIRARD2019-08-141-1/+1
| | | | | | | | gpg key (#7846) * Use .ExpiredUnix.IsZero for display green color of gpg key * remove useless parentheses
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-131-65/+68
|
* vendor: update pdf.js to v2.1.266 (#7834)Antoine GIRARD2019-08-13326-46478/+106072
|
* Do not fetch all refs (#7797)Mura Li2019-08-131-1/+1
| | | Which would unnecessarily slow down the pull compare operation.
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-121-1/+1
|
* add details for db socket listening (#7830)Antoine GIRARD2019-08-121-1/+1
|
* Fix lax comparison in validation tests (#7815)WGH2019-08-121-2/+6
| | | | | | | | | | | | | | | | | If you add t.Logf("%+v %+v", actual, testCase.expectedErrors) to the test code, you'll notice that only Errors' Messages are being compared: --- PASS: Test_ValidURLValidation/Invalid_schema (0.00s) binding_test.go:43: [Url] [Url] FieldNames and Classification are ignored in comparison. Moreover, an Errors slice with a single Error with empty message is formatted as '[]' (the same as empty slice), which is also error-prone. I discovered this when working on #7791 when one test which was not supposed to pass did pass. https://play.golang.org/p/qC4wVLrm4NG This commit changes the test to do the comparison properly.
* Fix duplicate call of webhook (#7821)Antoine GIRARD2019-08-116-113/+34
|
* Enable switching to a different source branch when PR already exists (#7819)Mario Lubenka2019-08-111-7/+7
| | | Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Update serv.go (#7822)clavinet2019-08-111-1/+1
| | | | small semantics fix "Hi there, user!" looks better than "Hi there: user!"
* Update app.ini.sample (#7817)clavinet2019-08-101-1/+1
| | | small grammar fix
* Rewrite existing repo units if setting is not included in api body (#7763)David Svantesson2019-08-101-73/+86
| | | | | | | | * Rewrite existing repo units if setting is not included in api body Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * else-if on one row
* Prevent Commit Status and Message From Overflowing On Branch Page (#7800)Gary Kim2019-08-093-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent Commit Status From Overflowing On Branch Page It is possible for the commit ci status on the branches page for a repository to become an ellipsis due to overflowing. This commit will fix that issue by using flex. Signed-off-by: Gary Kim <gary@garykim.dev> * Fix multiple overflowing issues in commits table It was possible that the commit message would overflow hiding the expand commits button and commit status. This change ensures that the correct elements overflow without hiding anything else. This change also reverts using flex in the commits list because it was causing issues in Blink based browsers. Signed-off-by: Gary Kim <gary@garykim.dev> * Remove unnecessary html element and fix indentation issues
* api: fix multiple bugs with statuses endpoints (#7785)Antoine GIRARD2019-08-095-23/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | * fix commit statuses api url * search refs before passing sha * adjust tests * directly search tags and branches names + remove un-needed check in NewCommitStatus * fix comment * de-duplicate code * test: use relative setting.AppURL * Update routers/api/v1/repo/status.go Co-Authored-By: Lauris BH <lauris@nix.lv> * remove return * Update routers/api/v1/repo/status.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add SSH_LISTEN_HOST to the config cheatsheet (#7793)Mason2019-08-081-0/+1
| | | | This was missing before, and this commit adds it with the correct default value and description
* Fix global search result CSS, misc CSS tweaks (#7789)silverwind2019-08-085-210/+178
| | | | | | | - Fixes double line-numbers and padding in Explore > Code > Search - Moved code-view specific CSS out of their parents to share those styles better. - Fix misc issues discovered in code,diff and blame view, especially for the dark theme.
* activate sum.golang.org check (#7782)Antoine GIRARD2019-08-081-0/+1
|
* Correct formatting of bullet list (#7794)guillep2k2019-08-081-0/+1
|
* Display error as string but not bytes (#7780)Lunny Xiao2019-08-071-1/+1
| | | | | | | | * display error as string but not bytes * Update routers/repo/http.go Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* remove `-i` flag from GOFLAGS (#7778)Lars Kistner2019-08-071-1/+1
| | | | this flag is not needed for Go versions >=1.10 and creates problems while building. see https://github.com/golang/go/issues/27285#issuecomment-424382413
* Fix approvals counting (#7757)Lunny Xiao2019-08-072-6/+9
| | | | | | | | * fix approvals counting * fix tests * fmt
* Fix Slack webhook fork message (#7774)WGH2019-08-061-2/+2
| | | The order of forkee and fork was mixed up.
* Add migration step to remove old repo_indexer_status orphaned records (#7746)guillep2k2019-08-062-0/+18
| | | | | | | | | | | | * Add migration step to remove old repo_indexer_status orphaned records * Include RepoIndexerStatus struct definition in the migrate function * Change .Delete(o) into ID(o.ID).Delete(new(RepoIndexerStatus)) * Simplification of the delete procedure * Rename v91.go to v92.go
* fix rename failed when rewrite public keys (#7761)Lunny Xiao2019-08-061-1/+3
|
* Remove camel case tokenization from repo indexer (#7733)guillep2k2019-08-065-278/+2
| | | | | | | | | | | | | | * Make repository indexer tokenize by camel case selectable * Revert "Make repository indexer tokenize by camel case selectable" This reverts commit a8d4e40af56ffeab9c040a13e01b9e0d5487bd3b. * Remove app.ini setting, permanently remove camel case tokenizer * Increase repoIndexerLatestVersion to force indexes to be rebuilt * Changes introduced by the commmand make vendor
* Fix dropTableColumns sqlite implementation (#7710)zeripath2019-08-054-97/+23
| | | | | | | | | | * Fix dropTableColumns sqlite implementation * use droptables and its index dropping support in v78 and v85 * golang-ci fixes * Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works
* Be more strict with git arguments (#7715)zeripath2019-08-0512-20/+41
| | | | | | * Be more strict with git arguments * fix-up commit test * use bindings for branch name
* Add a lot of extension to language mappings for syntax highlights (#7741)silverwind2019-08-051-35/+79
| | | | | Data partially based on [CodeMirror's meta.js](https://github.com/codemirror/CodeMirror/blob/master/mode/meta.js). Fixes: https://github.com/go-gitea/gitea/issues/6057
* Add SQL execution on log and indexes on table repository and comment (#7740)Lunny Xiao2019-08-055-6/+36
| | | | | | | | * add index on comment * add SQL execution time on log and index owner_id on repository * add migration
* deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#7749)Antoine GIRARD2019-08-0510-29/+86
| | | | | | * deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 from 1.2.0 to 1.3.0 * deps: vendor updates
* build: use GOPROXY and disable download on some steps (#7745)Antoine GIRARD2019-08-052-0/+26
| | | | | | * build: use GOPROXY * disable download vendor on some steps
* add pagination for admin api get orgs and fix only list public orgs bug (#7742)Lunny Xiao2019-08-043-4/+27
|
* Apply emoji on commit graph page (#7743)jaqra2019-08-041-1/+1
|
* Tweak label border CSS (#7739)silverwind2019-08-044-17/+33
| | | | | Also did various tweaks to label hover and dark theme. Fixes: https://github.com/go-gitea/gitea/pull/5487
* Fix specific highlighting (CMakeLists.txt ...) (#7686)FlorianBen2019-08-041-5/+7
| | | | | | | | * Fix specific highlighting. * Highlighting CMakeLists.txt: remove case sensitive checks. use lowercase checks instead.
* Fix repo_index_status lingering when deleting a repository (#7734)guillep2k2019-08-041-0/+1
|
* Fix milestone completness calculation when migrating (#7725)Lauris BH2019-08-031-4/+16
|
* Fixes indexed repos keeping outdated indexes when files grow too large (#7712)guillep2k2019-08-031-1/+1
|
* display as error (#7724)Lunny Xiao2019-08-031-1/+1
|
* org/members: display 2FA members states + optimize sql requests (#7621)Antoine GIRARD2019-08-0213-25/+346
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * org/members: display 2FA state * fix comment typo * lay down UserList bases * add basic test for previous methods * add comment for UserList type * add valid two-fa account * test new UserList methods * optimize MembersIsPublic by side loading info on GetMembers + fix integrations tests * respect fmt rules * use map for data * Optimize GetTwoFaStatus * rewrite by using existing sub func * Optimize IsUserOrgOwner * remove un-used code * tests: cover empty org + fix import order * tests: add ErrTeamNotExist path * tests: fix wrong expected result
* Include "executable" files in the index, as they are not necessarily binary ↵guillep2k2019-08-022-1/+6
| | | | (#7718)
* Skip non-regular files (e.g. submodules) on repo indexing (#7711)guillep2k2019-08-021-5/+13
|