Commit Graph

501 Commits (master)

Author SHA1 Message Date
Unknwon 65277e47c5
api/repo: add Mirror field (#4392) 2017-04-07 18:15:23 -04:00
Unknwon 9e3c83372f
api/repo: improve migration error handling 2017-04-07 16:00:25 -04:00
Unknwon 90b9f7e08c
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL} 2017-04-06 17:27:57 -04:00
Unknwon d05395fe90
Refactoring: rename modules -> pkg
Reasons to change:

1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
2017-04-04 19:29:59 -04:00
Unknwon c07899701a
vendor: update github.com/gogits/git-module 2017-04-03 15:09:53 -04:00
Unknwon ab42671c63
repo: handle git.ErrUnsupportedVersion error type 2017-04-01 17:56:55 -04:00
Unknwon c1c269d9ef
modules: rename markdown -> markup
To further support more markup languages (e.g. Org-mode, AsciiDoc,
reStructuredText), the name 'markdown' is inappropriate.

This is the first step towards more markup language support.
2017-03-31 15:29:43 -04:00
Pablo Saavedra 496e07c1c9 models/repo: avoid duplicated results in SearchRepositoryByName (#4344) 2017-03-26 23:23:17 -04:00
Unknwon 674106c7b6
repo: cleanup some code 2017-03-24 16:32:14 -04:00
Unknwon 8196430f47
repo: allow private repository to have public wiki or issues
Relates to #649 and #2157
2017-03-24 16:25:40 -04:00
Unknwon 7a99e56893
repo: update size after fork, migrate and mirror sync (#4336) 2017-03-24 14:22:19 -04:00
Unknwon 3144be5c81
repo: remove legacy sanitizer for repository description
Related to #4329.
2017-03-23 20:23:23 -04:00
Unknwon fdc7cb565d
repo: fix unable to propose pull request from secondary fork (#4324) 2017-03-23 20:04:20 -04:00
Unknwon 66c1e6b0e8
user/settings: complete repositories panel (#4312) 2017-03-23 14:28:31 -04:00
Unknwon beee6e03b1
error: move ErrRepoNotExist -> errors.RepoNotExist 2017-03-23 14:27:34 -04:00
Unknwon cac7af2c78
explore: able list and search for private but accessible repositories (#3088) 2017-03-17 19:17:40 -04:00
Unknwon 171f97868d
repo: allow issues and wiki for bare repository (#4104) 2017-03-16 23:10:45 -04:00
Unknwon bc630cc52b
repo/commit: able to config default commits page size (#4230)
Added config option '[ui.user] COMMITS_PAGING_NUM'.
2017-03-16 22:28:32 -04:00
Unknwon 96ae0129ef
models/repo: minor code style and comment fix (#4273) 2017-03-13 00:53:50 -04:00
Rob Richards aaadc61ee8 models/repo: allow SearchRepos to return private but accessible repositories (#4273)
* models/repo.go SearchRepositoryByName()
Updated function to return public and private repositories that the logged in user has been given rights to view
issue #3088

* models/repo.go SearchRepositoryName
changed repository table alias to 'repo'
removed debug line

* models/repo.go SearchRepositoryByName
modified UserID search query to use the "access" table instead of team_repo, team_user etc

* models/repo.go SearchRepositoryByName
1) uppercased SQL keywords
2) removed alias for ACCESS table
2017-03-13 00:37:12 -04:00
Unknwon bb19bb601e
repo: able to view size (#1158) 2017-03-12 01:59:48 -05:00
Unknwon 05dbd3f7d7
refactoring: experimental with models/errors package 2017-03-12 00:47:34 -05:00
Unknwon b06f299748
webhook: add fork event 2017-02-27 22:48:18 -05:00
Unknwon 70072e2842
dashboard: add delete branch and tag news feeds 2017-02-27 22:47:33 -05:00
Unknwon 87f0ce793d
repo: able to perform initial commit on behave of actual user 2017-02-27 22:47:12 -05:00
Unknwon cd15a17970
models/repo: delete protect branch options when delete repository 2017-02-23 18:42:03 -05:00
Unknwon 6072e9a52c
repo: add protect branch whitelist (#4177)
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
2017-02-23 18:25:12 -05:00
Unknwon b78e03934d
models/access: hasAccess only need userID not user object 2017-02-23 16:15:25 -05:00
Unknwon d21dc0da78
migrate: fix unexpected removal of repository when wiki is detected 2017-02-21 22:00:45 -05:00
Unknwon c5b85f2733
models/repo: fix repository files weren't cleaned up (#4167) 2017-02-21 11:12:46 -05:00
Unknwon 7de71333c6
repo: several minor improvements
1. Fix sample content didn't show up when hook doesn't exist.
2. Fix CSS 'word-break' to use 'break-word' not 'break-all'.
3. Fix single quote in 'locale_en-US.ini' file.
2017-02-19 13:18:16 -05:00
Unknwon 40fbe7fa8e
models/repo: handle deletion on Windows (#4152) 2017-02-18 22:47:32 -05:00
Unknwon 0a2f87f941
cron: add repository archive cleanup (#4061) 2017-02-18 19:35:59 -05:00
Unknwon 266586e866
repo: assignee can be anyone who has read access (#3739) 2017-02-17 22:17:27 -05:00
Unknwon 7e09d210ba
Initial version of protected branches (#776)
- Able to restrict force push and deletion
- Able to restrict direct push
2017-02-17 15:10:50 -05:00
Unknwon 88143f1934
models/repo: UpdateLocalCopy should always aceept valid branch name 2017-02-16 06:28:37 -05:00
Unknwon f35bd34002
models/repo: use reset --hard to align with remote branch (#4123)
If user has force pushed to a branch, git pull will fail.
2017-02-15 21:00:46 -05:00
Unknwon 6132a82287
admin: sync wiki's hook files as well 2017-02-15 05:15:39 -05:00
Unknwon 039dc33367
git: delegate all server-side Git hooks (#1623) 2017-02-14 16:22:16 -05:00
Christian Höppner 859009259a Typo in LocalCopyPath (#4122)
This won't fix any bugs, but a typo is a typo.
2017-02-14 07:39:55 -05:00
Unknwon f4aedda13a
org/team: make 'new' as reserved for team name (#3789) 2017-02-14 03:16:02 -05:00
Unknwon 9b72661767
config: show Git version in admin panel 2017-02-11 03:04:45 -05:00
Unknwon ee59016585
wiki: clean up broken data if migration failed (#3792) 2017-02-10 17:07:21 -05:00
Unknwon 1863f38286
models/repo: fix SQLite3 database-lock when fail to delete repository (#4048) 2017-02-10 16:56:58 -05:00
Unknwon eb66060cd7
log: start using gopkg.in/clog.v1 2017-02-09 19:29:59 -05:00
Unknwon f7c11a27d0
models/repo: clean up repository local copy after rename (#3641) 2017-02-09 15:56:39 -05:00
Rémy Boulanouar be3a13a0d6 Allow use to set an external tracker url and to redirect user when clicking in Issues same behavior as Wiki. (#3646) 2017-01-31 20:53:48 -05:00
Unknwon d293aa9ced
Do a fast-fail testing on repository URL before mirroring
To ensure the URL is accessible under good condition to prevent
long blocking on URL resolution without syncing anything.
2017-01-31 18:40:38 -05:00
Unknwon 8059175a5c
Fix dashboard issues/pull request counting 2016-12-27 22:01:18 +08:00
Unknwon d528704503
Minor code fix for PR #3560 2016-12-27 20:26:35 +08:00