Unknwon
ae1d50d19a
models/mirror: escape credentials before write mirror address ( #4014 )
...
Special characters such as '@', ';', '#' and ':' could occur in
password portion of credentials, which breaks the interpretation
and saves 'config' file in with extra characters that are not
recognized by Git (due to INI library).
2017-04-04 19:40:46 -04:00
Unknwon
fe25effe7c
repo/http: fix client is not informed to provide credentials
...
When Git client has cached credentials for a site, missing response
header 'WWW-Authenticate: Basic realm="."' will result in Git client
does not prompt user to input credentials again but plain error
message and halts push/pull process.
2017-04-04 19:36:30 -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
37b10666de
modules/context: add *Context. ServerError method
...
Also use constants from net/http to replace raw integers.
2017-04-04 19:25:05 -04:00
Unknwon
41c8e87be8
repo/commit: improve error detection
...
Response 404 not 500 for raw diff if object does not exist.
2017-04-04 02:01:29 -04:00
Unknwon
55afc1ad21
models/repo_diff: move core functions to gogits/git-module
2017-04-04 01:45:57 -04:00
Unknwon
16c6ca72cd
css: fix font of .ui.label.button style
2017-04-04 01:19:47 -04:00
Unknwon
b873ec2bce
templates/repo/branches: hide pull request button if not allowed ( #4377 )
2017-04-03 22:24:21 -04:00
Unknwon
1bc805bb4b
public: update Semantic UI 2.2.7 -> 2.2.10
...
[CI SKIP]
2017-04-03 22:20:17 -04:00
Unknwon
348c75c91b
issue: response wrong type of comment from AJAX
2017-04-03 20:06:15 -04:00
Unknwon
76ebdb265b
css: update fonts
...
[CI SKIP]
2017-04-03 18:20:49 -04:00
Unknwon
88ae3510ff
Prepare release
2017-04-03 16:26:43 -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
b3ac33cbcf
vendor: update github.com/gogits/git-module
2017-04-01 17:50:11 -04:00
Unknwon
3b94162803
modules/setting: set default session GC interval to 3600s
2017-03-31 23:55:42 -04:00
Unknwon
52aade232d
modes: fix test compile error
2017-03-31 18:28:08 -04:00
Unknwon
3a9276307c
modules/markup: move common functions to markup.go
2017-03-31 17:46:57 -04:00
Unknwon
ca6326c937
modules/base: move file-related functions to file.go
2017-03-31 17:20:05 -04:00
Unknwon
8da16ac302
modules/markup: rename Markdown render fucntions
...
The unified function 'Markdown' accepts both string or []byte type
input and renders to HTML with []byte type.
2017-03-31 16:37:30 -04:00
Unknwon
761bb3cf53
modules/markup: protect sanitizer from possible modification
...
Only expose public APIs for 'Sanitize' and 'SanitizeBytes' to
eliminate unintentional modifications to sanitizer policy. Also
use 'sync.Once' to make sure multiple calls of 'NewSanitizer' is
safe (although should never happen, but this is a better way).
2017-03-31 16:19:10 -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
Unknwon
9edac05e05
templates/repo: improve README icon and font
2017-03-31 15:11:40 -04:00
Unknwon
9c1620d49c
css: font-family fixes for Chinese
2017-03-31 14:13:25 -04:00
John Behm
65bb6eb284
locale: update TRANSLATORS ( #4372 )
...
* Update TRANSLATORS
* Update TRANSLATORS
2017-03-31 12:37:46 -04:00
Unknwon
aff55ff105
vendor: update github.com/go-macaron/captcha
...
[CI SKIP]
2017-03-30 12:35:43 -04:00
Unknwon
4a67bb5806
migrations.v17: skip if table not exist
2017-03-30 11:37:27 -04:00
Unknwon
1afafde3b3
user/setting: preserve user input with validation error ( #1123 )
2017-03-30 01:03:44 -04:00
Unknwon
ab634ce61a
cmd/web: fix routes requires sign in ( #4359 )
...
Redirect user to sign in page when visit private repository with
public issues if user want to post comment or create new issue.
2017-03-30 00:34:20 -04:00
Unknwon
9d06ebd01a
markdown: improve filter of class attribute for code blocks
...
Only allow HighlightJS specific classes.
Reported by ChALkeR.
2017-03-29 19:52:53 -04:00
Kyle McCullough
09723ec0e5
migration.v17: handle mysql error ( #4361 )
2017-03-29 19:02:07 -04:00
Hassan Amouhzi
864761c2d0
js: use jQuery .find() ( #4343 )
2017-03-28 17:36:48 -04:00
Unknwon
abe7f7bc36
migration.v17: add nil error check
2017-03-28 16:38:16 -04:00
Unknwon
717bcc4ad8
migration/v17: skip if protect_branch_whitelist table not exist ( #4355 )
2017-03-28 11:20:58 -04:00
Unknwon
11ffdac3f8
org/dashboard: fix wrong repository count ( #4351 )
...
Should not include count for inaccessible repositories.
2017-03-28 11:16:29 -04:00
David Beitey
cf7d5d0c56
docker: fix heading in README.md ( #4353 )
...
The unicode non-breaking space character was breaking the heading format; this switches that character for an ASCII space.
2017-03-28 07:50:36 -04:00
Unknwon
375f1b1fde
Prepare release
...
[CI SKIP]
2017-03-27 14:56:56 -04:00
Unknwon
ad3c6ef205
Update locales
2017-03-27 14:40:55 -04:00
Unknwon
30d9e2ee3c
docker: use vendor to replace go get
2017-03-27 14:04:48 -04:00
Unknwon
1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' ( #4333 )
...
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.
Migration: remove existing invalid protect branch whitelist records.
2017-03-27 13:13:04 -04:00
Unknwon
73de9f9d6a
repo/settings/branches: add prompt for bare repository
2017-03-27 13:12:29 -04:00
Jonas
f40eb9774e
modes/mirror: corrected NextUpdate not set ( #4345 )
2017-03-26 23:24:48 -04:00
Pablo Saavedra
496e07c1c9
models/repo: avoid duplicated results in SearchRepositoryByName ( #4344 )
2017-03-26 23:23:17 -04:00
Unknwon
c238647020
cmd/web: remove dependency version checker
2017-03-25 04:17:55 -04:00
Unknwon
78f94986e3
user/settings: fix bad error handle of leave organization
2017-03-25 03:44:12 -04:00
Unknwon
8f52ab8201
models/repo_editor: add pull request test task after commit ( #4338 )
2017-03-25 03:36:13 -04:00
Unknwon
260ebcc1ca
repo/milestone: simplify code
2017-03-24 18:54:17 -04:00
Unknwon
09cb48e41c
repo: recalculate milestone completeness on issue list ( #4316 )
2017-03-24 18:36:35 -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