7058 Commits (8917d66571a95f3da232a0c27bc1300210d10fde)
 

Author SHA1 Message Date
zeripath 8917d66571 Add migration test (#5773)
* Add migration test

This commit adds a simple migration test for v1.5.3, v1.6.4 and v1.7.0-rc3

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Automigrate based on available dbs

* remove old ini file

* Standardise the dialect names
5 years ago
GiteaBot bc748f205a [skip ci] Updated translations via Crowdin 5 years ago
vee w 573650877c Fix wrong URL to download link. (#5881)
* Fix wrong URL to download link.

The link does not contain trailing slash and cause error page displayed.

* Update version
5 years ago
kekero 3568d426fe New Issue ?body= query (#5851)
* New Issue ?body= query

* Override issue template with body query

* Add documentation for issue body query
5 years ago
Lanre Adelowo 7461c5a75f Fix "pulls.blocked_by_approvals" text (#5879) 5 years ago
GiteaBot 56415fa2fc [skip ci] Updated translations via Crowdin 5 years ago
zeripath bf47f70c3b
API: Fix null pointer in attempt to Sudo if not logged in (#5872)
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
Gabriel Silva Simões 5f4a40c4a3 Revert #3711 overwrite of only show "No Description" to repo admins #2167 (#5836)
Revert #3711 overwrite of only show "No Description" to repo admins  #2167 and add tests to prevent accidental overwrite again.
5 years ago
zeripath 182a6d6885 Fix wording of #5858 issue.review.reject string (#5869)
As per @lafriks comment this should be: requested changes

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
GiteaBot 34a1c4c514 [skip ci] Updated translations via Crowdin 5 years ago
Harshit Bansal 7e8242ddb1 Fix an error while adding a dependency via UI. (#5862)
Fixes: #5783
5 years ago
GiteaBot 2d8520d039 [skip ci] Updated translations via Crowdin 5 years ago
sebastian-sauer 84076211b3 Config option to disable automatic repo watching (#5852)
Add a new config option to enable / disable the automatic watching of
repos for new repositories and if a user is added to a team.

Fixes #653

Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
5 years ago
Lanre Adelowo b8a81cb1b8 Rename reject to 'request changes' (#5858)
* remame reject to 'request changes

* make usee of requested changes in issue's view content
5 years ago
Jakub Arbet a757920f4e Fix failing migration v67 (#5849)
Fixes #5848
5 years ago
yasuokav 8510ac2687 Fix MinInterval (#5856)
Fixes #5847
5 years ago
GiteaBot ac766fe3de [skip ci] Updated translations via Crowdin 5 years ago
sebastian-sauer 8656a3c62d Move input fields to add members to a team and repos to a team (#5853)
Move input fields to the top so no scrolling is needed to add
new members / repos to a team.

Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
5 years ago
yasuokav d663930023 fix delete correct temp directory (#5839) 5 years ago
Lunny Xiao 6b0c2e9e35 update swagger for release API pagination (#5841) 5 years ago
Lunny Xiao 892bfd0b19 improve the releases api paging (#5831)
* improve the releases api paging

* add max limit on API paging
5 years ago
kolaente 9a137faaaf Added docs for the tree api (#5834)
* Added docs for the tree api

* Added missing response definition

* Fixed swagger docs
5 years ago
GiteaBot 62da3bee1a [skip ci] Updated translations via Crowdin 6 years ago
Antoine GIRARD d6c229cdbe Include Go toolchain to --version (#5830)
* Include Go version

* fix import order
6 years ago
GiteaBot 4aa2f4f45f [skip ci] Updated translations via Crowdin 6 years ago
zeripath 44371b96f5 Ensure valid git author names passed in signatures (#5774)
* Ensure valid git author names passed in signatures

Fix #5772 - Git author names are not allowed to include `\n` `<` or `>` and
must not be empty. Ensure that the name passed in a signature is valid.

* Account for pathologically named external users

LDAP and the like usernames are not checked in the same way that users who signup are.
Therefore just ensure that user names are also git safe and if totally pathological -
Set them to "user-$UID"

* Add Tests and adjust test users

Make our testcases a little more pathological so that we be sure that integration
tests have a chance to spot these cases.

Signed-off-by: Andrew Thornton <art27@cantab.net>
6 years ago
Lauris BH cd83c2ca05
Fix topics saving internal error and disable for archived repos (#5821) 6 years ago
Mura Li ec31ee1c1c Make sure .git/info is created before generating .git/info/sparse-che… (#5825)
* Make sure .git/info is created before generating .git/info/sparse-checkout

* fix permissions
6 years ago
techknowlogick 88aa70bab9 Remove tidb reference from docs (#5823)
* Remove tidb reference from docs

* Update from-source.fr-fr.md

* Update from-source.zh-cn.md

* Update from-source.zh-tw.md
6 years ago
Lauris BH 386e5312a4 When creating new repository fsck option should be enabled (#5817) 6 years ago
Joona Hoikkala 3b364029f7 Fix TLS errors when using acme/autocert for local connections (#5820) 6 years ago
Lauris BH 331c9120e8
Request for public keys only if LDAP attribute is set (#5816)
* Update go-ldap dependency

* Request for public keys only if attribute is set
6 years ago
Shashvat Kedia 1b90692844 New API routes added (#5594)
* New API routes added

* Comments added

* Build fix

* swagger_v1_json.tmpl without new line character

* Typo fix

* Code review changes

* Code review changes

* Add copyright

* Add copyright

* Add copyright

* Update per @lafriks feedback

* Update org.go

* Update user.go

* Update user.go

* make fmt
6 years ago
GiteaBot b9f87376a2 [skip ci] Updated translations via Crowdin 6 years ago
Peter Colberg 904188ce9c Adapt documentation to renamed ENABLE_SWAGGER option (#5811)
Updates documentation to account for the renamed ENABLE_SWAGGER_ENDPOINT from  #3572 (commit a74426d631)

Signed-off-by: Peter Colberg <peter@colberg.org>
6 years ago
kolaente 0b510725c9 Feature: Archive repos (#5009) 6 years ago
Mura Li 6ad834e236 Optimize pulls merging (#4921)
* Optimize pulls merging

By utilizing `git clone -s --no-checkout` rather than cloning the whole
repo.

* Use sparse-checkout to speedup pulls merge

* Use bytes.Buffer instead of strings.Builder for backward compatibility

* Fix empty diff-tree output for repos with only the initial commit

* Fix missing argument for the format string

* Rework diff-tree-list generation

* Remove logging code

* File list for sparse-checkout must be prefix with /

Otherwise, they would match all files with the same name under
subdirectories.

* Update onto the rebased head

* Use referecen repo to avoid fetching objects
6 years ago
zeripath 7d434376f1 Pooled and buffered gzip implementation (#5722)
* Pooled and buffered gzip implementation

* Add test for gzip

* Add integration test

* Ensure lfs check within transaction

The previous code made it possible for a race condition to occur whereby a LFSMetaObject could be checked into the database twice. We should check if the LFSMetaObject is within the database and insert it if not in one transaction.

* Try to avoid primary key problem in postgres

The integration tests are being affected by
https://github.com/go-testfixtures/testfixtures/issues/39 if we set the
primary key high enough, keep a count of this and remove at the end of
each test we shouldn't be affected by this.
6 years ago
Lauris BH 075649572d Add the ability to use multiple labels as filters(#5786) 6 years ago
GiteaBot 6a949af8ca [skip ci] Updated translations via Crowdin 6 years ago
techknowlogick 4de2bd06da backport 1.7.0 changelog (#5804) 6 years ago
GiteaBot 2d9456137e [skip ci] Updated translations via Crowdin 6 years ago
pgodwin 832bf218ec Allow markdown table to scroll (#4401)
* Allow markdown table to scroll

`overflow:auto` isn't effective when a table is wider than the container. Adding `display:block` fixes this issue.
6 years ago
Lanre Adelowo e1fcd6b742 Disallow empty titles (#5785)
* add util method and tests

* make sure the title of an issue cannot be empty

* wiki title cannot be empty

* pull request title cannot be empty

* update to make use of the new util methof
6 years ago
GiteaBot 8a92544a3e [skip ci] Updated translations via Crowdin 6 years ago
Lunny Xiao b80d6490f3 fix migration 78 error mssql (#5791) 6 years ago
Paul Brackin f631702299 Ensure error is logged on db reconnection attempts (#5780)
Unfortunately a scoping problem was missed on the previous PR which meant that the only nil error was logged on failure to connect to the db. This pr fixes this.
6 years ago
techknowlogick dbb4aeead9
Change systemd service file to more correctly match Debian & Centos - Fix #4391 (#5777) 6 years ago
zeripath b0fbefc76b Fix the v78 migration script (#5776)
Unfortunately the last fix didn't completely fix the migration to v79 of the db
due to bug with schema locking during Sync2. This should fix this issue.

Fix #5759

Signed-off-by: Andrew Thornton <art27@cantab.net>
6 years ago
techknowlogick 71c832e043
Add documentation for SHOW_REGISTRATION_BUTTON (#5778)
* Fix #5737
6 years ago