Lunny Xiao
f10640433f
fix delete comment bug ( #4216 ) ( #4228 )
2018-06-12 13:39:37 +03:00
David Schneiderbauer
1b10bc0cdf
update git vendor ( #4059 ) ( #4075 )
...
* update git vendor (#4059 )
* fix errors resulting from git vendor update
* fmt
2018-06-04 23:33:42 +03:00
Morgan Bazalgette
dec663cc0a
Don't force due date to current time ( #3830 ) ( #4057 )
2018-05-27 21:34:33 +03:00
Lunny Xiao
910e379265
fix webhook bug of response info is not displayed in UI ( #4023 )
2018-05-23 11:57:21 +03:00
奶爸
f1720ad133
webhook and hook_task clean up ( #4006 )
...
webhook and hook_task clean up
2018-05-22 02:08:21 +03:00
Lauris BH
40c6eb0d85
Fix to use only needed columns from tables to get repository git paths ( #3870 ) ( #3883 )
2018-05-02 19:34:21 +03:00
Lauris BH
2996573976
Add "error" as reserved username ( #3882 ) ( #3886 )
2018-05-02 12:47:24 +03:00
Lauris BH
15cdb19d77
Fix path cleanup in multiple places ( #3871 ) ( #3873 )
2018-05-01 17:10:50 +08:00
kolaente
9be48f04cb
Fix only updated_unix when adding a comment (Backport of #3855 to 1.4 ) ( #3860 )
2018-04-30 21:42:37 +03:00
Michael Kuhn
31c0a338d6
Fix typo in deleteUser ( #3781 ) ( #3783 )
...
num_watches was used where num_stars should have been used.
2018-04-11 11:24:46 +08:00
Lunny Xiao
6c6d1ff08c
fix go vet error ( #3740 ) ( #3744 )
2018-03-30 23:28:10 +03:00
Bwko
d9ad876d97
Set default branchname on first push ( #3723 )
2018-03-27 12:51:20 +08:00
Lauris BH
5d0c9872a9
Fix MySQL and PostgreSQL column drop SQL ( #3649 ) ( #3651 )
2018-03-10 10:27:19 +08:00
Lauris BH
92a3061753
Fix column removal in MSSQL ( #3638 ) ( #3640 )
...
* Fix column removal in MSSQL
* Use xorm session in MSSQL drop column operations
* Add transaction as MSSQL alter table is transactional
2018-03-07 11:59:20 +02:00
Wendell Sun
dd784396ce
Fix query protected branch bug ( #3563 ) ( #3571 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
2018-02-24 00:07:25 +02:00
Wendell Sun
4a0ce6896b
Fix remove team member issue ( #3566 ) ( #3570 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
2018-02-23 20:02:45 +02:00
Wendell Sun
d87fb0a6fd
Fix the protected branch panic issue ( #3567 ) ( #3569 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
2018-02-23 19:27:34 +02:00
Bo-Yi Wu
e55eaa8545
if Mirrors repo no content is fetched, updated time should not be changed #3551 ( #3565 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-02-23 13:48:40 +02:00
Wendell Sun
423c642fdb
Bug fix for repo releases sorted ( #3522 ) ( #3555 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
Use TimeStampNow function
2018-02-22 09:56:38 +08:00
Bo-Yi Wu
ed2ba84525
refactor: reduce sql query in retrieveFeeds ( #3554 )
2018-02-21 18:15:00 +02:00
Lauris BH
e8015a59bb
Add issue closed time column to fix activity closed issues list ( #3537 ) ( #3540 )
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-02-19 21:51:37 +02:00
Lauris BH
ade183957d
Force remove test repo root path in case previous test is still locking it ( #3528 ) ( #3536 )
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-02-19 08:29:37 +02:00
Codruț Constantin Gușoi
1c3d712fe7
Fixes missing avatars in offline mode ( #3471 ) ( #3477 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
2018-02-14 23:37:35 +02:00
Ethan Koenig
4e27cc4813
Fix synchronization bug in repo indexer ( #3455 ) ( #3461 )
2018-02-08 08:42:45 +02:00
Lauris BH
f61ef28f26
Fix rendering of wiki page list if wiki repo contains other files ( #3454 ) ( #3463 )
...
* Fix rendering of wiki page list if wiki repo contains other files
* Improve wiki filename tests
2018-02-06 07:59:44 +02:00
Antoine GIRARD
b3fd94c13d
Add sensitive headers ( #3429 )
...
* Add HeaderWithSensitiveCase methods to respect casing
* Update webhook.go
2018-01-31 00:09:16 +02:00
Ethan Koenig
46c7fe371d
Fix PR merge error ( #3421 )
2018-01-29 12:18:20 +02:00
Ethan Koenig
3968c1149e
Fix SQL type error for webhooks ( #3424 )
2018-01-29 02:26:01 +02:00
Ethan Koenig
bac6ac033a
Fix race condition in repo renaming ( #3418 )
2018-01-28 14:24:59 +02:00
Ethan Koenig
c55a027da3
Fix empty checkout bug ( #3419 )
2018-01-28 13:27:42 +02:00
Wendell Sun
b627f1131b
Change local copy origin url after repository rename ( #3399 )
...
Fix #3378
2018-01-27 19:54:26 +02:00
Antoine GIRARD
9e842c8a72
Fix SSH auth lfs locks ( #3152 )
...
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
2018-01-27 18:48:15 +02:00
Antoine GIRARD
1ce3572409
Remove useless check ( #3384 )
...
In #3377 , I put check inside all write key function. This one is useless no.
2018-01-19 21:45:53 +02:00
Sandro Santilli
05ab747054
Force-push to base repo's ref/pull/#/head ( #3393 )
...
* Force-push to base repo's ref/pull/#/head
Fixes force-pushing to pull request branches, otherwise failing with:
[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward)
* format
2018-01-19 08:53:45 +02:00
Lauris BH
ca306985d3
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
Ethan Koenig
b0d5bb909b
Delete indexer DB entries when (re)creating index ( #3385 )
...
* comment
2018-01-17 23:51:07 +02:00
Antoine GIRARD
095fb9f2e3
Add integrations tests from git cli ( #3377 )
...
* test: integration add git cli tests
Extracted form for easing review process and debug #3152
* test: integration add git cli big file commit
* fix: Don't rewrite key if internal server
2018-01-16 13:07:47 +02:00
Lauris BH
a68bf746a4
Change reserved avatar name to correct - avatars ( #3375 )
2018-01-16 00:45:13 +02:00
Ethan Koenig
ccdb94992d
Asynchronously populate the repo indexer ( #3366 )
...
* Populate repo indexer in background
* Check if no repos exist
* race cond
2018-01-14 19:34:41 +02:00
Bo-Yi Wu
7a2a3fbafc
refactor(model): update user method. ( #3360 )
2018-01-13 11:45:16 +02:00
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
2018-01-12 00:19:38 +02:00
Lauris BH
be1330ec89
Remove hardcoded paths to fix randomly failing tests ( #3347 )
...
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
2018-01-11 00:46:59 +01:00
Morgan Bazalgette
674cfb7cac
Change EncodePasswd to HashPassword ( #3329 )
...
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
2018-01-08 23:28:18 +01:00
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser ( #3269 )
2018-01-08 09:48:37 +02:00
Antoine GIRARD
cb868b7851
Add missing indexer doc in configuration ( #3324 )
...
* Add missing indexer doc in configuration
* Unify MAX_FILE_SIZE to 1024 * 1024
2018-01-08 07:03:52 +02:00
Lunny Xiao
835b890329
fix bug when a user delete but assigned on issue ( #3318 )
2018-01-07 11:13:10 +02:00
Vlad Temian
e78786ef39
Writable deploy keys ( closes #671 ) ( #3225 )
...
* Add is_writable checkbox to deploy keys interface
* Add writable key option to deploy key form
* Add support for writable ssh keys in the interface
* Rename IsWritable to ReadOnly
* Test: create read-only and read-write deploy keys via api
* Add DeployKey access mode migration
* Update gitea sdk via govendor
* Fix deploykey migration
* Add unittests for writable deploy keys
* Move template text to locale
* Remove implicit column update
* Remove duplicate locales
* Replace ReadOnly field with IsReadOnly method
* Fix deploy_keys related integration test
* Rename v54 migration with v55
* Fix migration hell
2018-01-07 00:55:53 +02:00
Lauris BH
8ac1501ad7
Add Pull Request merge options - Ignore white-space for conflict checking, Rebase, Squash merge ( #3188 )
...
* Pull request options migration and UI in settings
* Add ignore whitespace functionality
* Fix settings if pull requests are disabled
* Fix migration transaction
* Merge with Rebase functionality
* UI changes and related functionality for pull request merging button
* Implement squash functionality
* Fix rebase merging
* Fix pull request merge tests
* Add squash and rebase tests
* Fix API method to reuse default message functions
* Some refactoring and small fixes
* Remove more hardcoded values from tests
* Remove unneeded check from API method
* Fix variable name and comment typo
* Fix reset commit count after PR merge
2018-01-05 20:56:50 +02:00
Sandro Santilli
a192f3052e
Serve pull request .diff files ( #3293 )
...
* Serve pull request .diff files
Closes #3259
* Add test for pull request redirection and .diff access
* Typo
* There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
2018-01-05 12:56:52 +02:00
Alberto González Palomo
30fb81c71e
Use issue number/index instead of id for API URL. ( #3298 )
...
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.
For instance, in a new repo in try.gitea.io with just one issue:
[{
"id": 896,
"url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896 ",
"number": 1,
...
}]
The given URL does not work, but if you replace the "896" by "1" it
does.
2018-01-03 19:41:33 -06:00