Ethan Koenig
f29458bd3a
EnableUnit() -> UnitEnabled() ( #2242 )
2017-08-02 11:46:54 +03:00
Lauris BH
f33e6ae09e
Remove unit types commits and settings ( #2161 )
...
* Remove unit types commits and settings
* Can not limit units in administrator teams
* Limit changing units only to teams with read and write access mode
* Small code optimization
2017-07-17 10:04:43 +08:00
Lauris BH
f189ccd2d6
Fix git hooks update to receive required arguments. Fixes #2090 ( #2095 )
...
* Changed migration calling so that migrations can use models package
2017-07-02 21:50:57 +08:00
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
2017-06-21 08:57:05 +08:00
Lunny Xiao
e2ec4b7c23
fix bu ong normal user visit public repo ( #1984 )
2017-06-17 12:53:51 +08:00
Lunny Xiao
31b5e9177f
fix collborators lack of units on orgnization repositories ( #1968 )
...
* fix collborators lack of units on orgnization repositories
* also change log level to debug
2017-06-15 04:50:12 +02:00
Ethan Koenig
e0a63a20e0
Fix errors caused by force push ( #1927 )
2017-06-10 21:59:13 -05:00
Phil Hopper
6ec07a6bd7
Make LocalCopyPath
a setting instead of a hard-coded path ( #1881 )
2017-06-06 04:09:54 -05:00
Ethan Koenig
bfb44f8854
Fix status table race condition ( #1835 )
2017-05-31 16:57:17 +08:00
Ethan Koenig
474d636794
Update code.gitea.io/git ( #1824 )
...
* Update code.gitea.io/git
* Update function calls
* govendor fetch
2017-05-30 04:32:01 -05:00
Ethan Koenig
9c66d1d9ea
Fix deadlock in updateRepository ( #1813 )
2017-05-26 13:08:13 +08:00
Ethan Koenig
bdc90aeaee
Delete repo redirects on repo deletion ( #1776 )
2017-05-23 16:00:10 +08:00
Ethan Koenig
b0308d86dc
Fix unloaded owner ( #1770 )
2017-05-21 14:35:45 +08:00
Lunny Xiao
6362462da8
fix admin lost permission caused by #947
2017-05-19 08:59:26 +08:00
Lunny Xiao
fd6034aaf2
Add units to team ( #947 )
...
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
2017-05-18 22:54:24 +08:00
Ethan Koenig
9e627af9a4
gofmt ( #1710 )
2017-05-12 16:09:53 +08:00
guyzmo
397474ecb1
Added Parent property to the repo API ( #1687 )
...
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-12 11:09:26 +08:00
guyzmo
98460a8d9d
Exposes in API the Repo entity's Size and IsBare property ( #1668 )
...
* Exposes in API the Repo entity's IsBare property as IsEmpty
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
* Exposes in API the Repo entity's Size property
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-05 10:55:54 +08:00
Kim "BKC" Carlbäcker
d409d3ab57
Sanitation fix from Gogs ( #1461 )
...
* Santiation fix from Gogs
* Linting
* Fix build-errors
* still not working
* Fix all the things!
* gofmt
* Add code-injection checks
2017-04-13 10:52:24 +08:00
Jonas
be6edaddcb
Repo size in admin panel ( #1482 )
...
* Implementation of the feature to view repository size in admin panel
* Move GetRepoSize to git module
* Repository.RepoSize -> Repository.Size
* RepoSize -> Size in template
* Redo a few bits and pieces
* Update size when syncing mirror or forking
* Remove GetRepoSize
* Changed fatal errors to error message
* Copy migration code from Gogs
* make fmt
2017-04-11 21:30:15 +08:00
Jonas
54f0293f0a
Mirror sync interval specified as duration string ( #1407 )
...
* Sync interval specifed as duration string
* Changed mirror interval text
* make fmt
* Add MinInterval for mirror sync
* Use duration internally
* Changed min default to 10m
* make fmt
* Incorrect default
* Removed defaults in MustDuration()
* Add Mirror interval migration
* Default values corrected
* Use transaction during migration
* Change http 500 to page with error message
* Cleanup session.commit()
2017-04-08 23:27:26 +08:00
Philippe Kueck
fe94032f74
rewrite pre-commit, post-commit and options hooks ( fixes #1250 ) ( #1257 )
...
* issue #1250 , replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script
* issue #1250 , make script posix compilant
* v23, add migration script to update {pre,post}-receive and update hooks
* migration: use a more common name and rename v23 to v26 to avoid conflicts
* gofmt'ed and added copyright header
* fix SyncRepositoryHooks to also sync wiki repos
2017-03-23 09:12:51 +08:00
Bo-Yi Wu
1c3bd436cc
feat: Only use issue and wiki on repo. ( #1297 )
2017-03-18 18:59:07 +08:00
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
2017-03-15 08:51:46 +08:00
Lunny Xiao
f5476bdbb1
bug fixed for delete repo failed ( #1193 )
2017-03-10 22:05:53 +08:00
Bo-Yi Wu
d76d67de23
feat: expose url field on issue api. ( #982 )
...
* Add api url func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: Add unit testing.
* fix: conflicts
* fix: remove trim
* fix: revert test function name.
2017-03-03 22:35:42 +08:00
Lunny Xiao
9cb08a3cf5
fix wrong num of user repos because of duplicated click delete button & performance optimization ( #1092 )
2017-03-01 12:05:45 +08:00
Ethan Koenig
136e6beb0f
Fix unused Engine bugs ( #1064 )
2017-02-27 10:16:35 +08:00
Lunny Xiao
32faec00e6
move all repo list functions as a standalone file ( #1061 )
2017-02-27 08:45:03 +08:00
Bo-Yi Wu
95574a3640
fix: Admin can see all private repositories on Explore page. ( #1026 )
...
* fix: Admin can see all private repositories on Explore page.
* refactor: fix session
2017-02-26 13:59:31 +08:00
Andrey Nering
946f3078d3
Add "mirror" field to repo API
2017-02-25 10:04:22 -03:00
Bo-Yi Wu
f1412142e0
refactor: repo counts for SearchRepositoryByName func ( #1045 )
2017-02-25 09:27:39 +08:00
Lunny Xiao
c0ea3963be
fix delete repo will hang on postgres ( #1044 )
2017-02-24 23:19:13 +08:00
Lunny Xiao
0e6b9ea786
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
Ethan Koenig
ec3a696e2d
Fix lint errors
2017-02-22 17:10:45 -05:00
Bo-Yi Wu
83b6d03231
fix: Wrong repo list on Explore page if user already loggin. ( #1009 )
...
* fix: Wrong repo list on Explore page if user already loggin.
* fix: code readable.
* fix: declare variable
2017-02-22 21:15:14 +08:00
Denis Denisov
fd941db246
Protected branches system ( #339 )
...
* Protected branches system
* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
- Admin does not restrict
- Owner not to limit
- To write permission restrictions
* reformat tmpl
* finished the UI and add/delete protected branch response
* remove unused comment
* indent all the template files and remove ru translations since we use crowdin
* fix the push bug
2017-02-21 23:02:10 +08:00
Ethan Koenig
be48b32e63
Unit tests for repo watching ( #963 )
2017-02-17 16:02:11 +08:00
Bo-Yi Wu
a31f64d639
fix: 500 error on /explore/repos page. ( #946 )
2017-02-15 22:28:11 +08:00
Bo-Yi Wu
9d2b830275
refactor: small optimize for sql query ( #940 )
...
* refactor: small optimize for sql query
* fix: get owner name if Searcher is not nil or user star page.
2017-02-15 14:01:50 +08:00
Lunny Xiao
3a91ac51a9
fix bug of multiple forks ( #928 )
2017-02-14 22:14:29 +08:00
Bo-Yi Wu
23aba523b5
feat: support search bar on star tab of user profile. ( #917 )
...
* feat: support search bar on star tab of user profile.
* fix: update testing.
* fix: Using loadAttributes
* fix: remove empty line.
* remove LOWER
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-02-14 15:28:22 +08:00
Bo-Yi Wu
5cc275b1de
feat: add git version on admin panel. ( #921 )
2017-02-13 19:49:42 +08:00
Morgan Bazalgette
442145dbd3
Fix public activity showing private repos ( #892 )
...
* Fix public activity showing private repos (#811 )
Signed-off-by: Morgan Bazalgette <the@howl.moe>
* error check after setting is_private to true
* Add test for UpdateRepository w/ visibility change
2017-02-11 18:57:57 +08:00
Andrew
42835c7f82
Implement archive cleanup ( #885 )
...
* Implement archive cleanup
Fixes #769
Signed-off-by: Andrew <write@imaginarycode.com>
* Make sure to close the directory file
* Resolve issues noted by @strk
* edit cheatsheet app.ini [ci skip]
* oops [ci skip]
2017-02-11 12:00:46 +08:00
Bo-Yi Wu
71d35dae8c
fix: wrong pages number which includes private repository count. ( #844 )
2017-02-06 23:18:36 +08:00
Ethan Koenig
027591a3a5
Redirects for renamed repos ( #807 )
...
* Redirects for renamed repos
* Remove unused phrase from locales
2017-02-05 22:35:03 +08:00
Lunny Xiao
8a421b1fd7
Add units concept for modulable functions of a repository ( #742 )
...
* Add units concept for modulable functions of a repository
* remove unused comment codes & fix lints and tests
* remove unused comment codes
* use struct config instead of map
* fix lint
* rm wrong files
* fix tests
2017-02-04 23:53:46 +08:00
Bo-Yi Wu
a90a215662
feat: Add search bar on user profile page. ( #787 )
2017-02-04 20:20:20 +08:00
Ethan Koenig
68bdaf0a6b
Drop redundant columns from issue_user table ( #638 )
2017-02-03 15:22:39 +08:00