2
0
Commit Graph

4414 Commits

Author SHA1 Message Date
stroucki
d664d3dc02 Handle ssh key import better (#224)
* Handle user ssh key input better

ssh_key: when user submitted keys had a newline at the end, strings.Split
would have created a slice with an empty last element, and the key type
check would be incorrect. Perhaps a better way is to look for 'ssh-rsa' or
'ssh-dsa' at the beginning of the string, but this is simple.

* ssh_key: correct indentation
2016-11-24 08:52:55 +08:00
Lunny Xiao
197126c155 golint fixed for routers/repo/branch.go (#206) 2016-11-22 16:32:00 +08:00
Sandro Santilli
391858563b Lint webhook.go, unexports simpleMarshalJSON (#198) 2016-11-22 14:42:52 +08:00
Lunny Xiao
1796508cbf golint fixed for routers/repo/wiki.go (#203) 2016-11-21 18:03:42 +08:00
Lunny Xiao
955dfb2185 golint fixed for routers/repo/middlewares.go (#204) 2016-11-21 18:03:37 +08:00
Lunny Xiao
bb3e482d23 golint fixed for routers/repo/view.go (#205) 2016-11-21 18:03:29 +08:00
Thomas Boerger
8a48a4c05e Merge pull request #202 from lunny/lunny/golint_fixed_routers_admin
go lint fixed for routers/admin
2016-11-21 10:37:14 +01:00
Lunny Xiao
67bbd4e1ed go lint fixed for routers/admin 2016-11-21 11:29:25 +08:00
Andrey Nering
0e128d6a8c Merge pull request #196 from Bwko/fix/commit-view-panic
Fix panic when no user is signed in
2016-11-19 14:30:37 -02:00
Bwko
9e89a8d90d Fix for anonymous users to switch views 2016-11-19 16:53:34 +01:00
Bwko
b0669be2d5 Fix panic when no user is signed in
See #188
2016-11-19 12:43:10 +01:00
Lunny Xiao
75f3c9798e golint fixed for parts of routers root, dev, user and org dirs (#167)
* golint fixed for parts of routers root, dev and org dirs

* add user/auth.go golint fixed

* rename unnecessary exported to unexported and user dir golint fixed
2016-11-18 11:03:03 +08:00
Andrey Nering
e6de32fa7b Merge pull request #187 from strk/vendor
Add vendoring section
2016-11-17 17:35:48 -02:00
Sandro Santilli
a26b6970f6 Wrap vendor/ in backtics 2016-11-17 17:06:13 +01:00
Sandro Santilli
ca752e1ee3 Add vendoring section
Closes #178
2016-11-17 16:49:12 +01:00
Andrey Nering
e217983b80 Merge pull request #100 from ethantkoenig/develop
API endpoints for stars
2016-11-17 07:15:15 -02:00
Ethan Koenig
875d9751aa API endpoints for stars 2016-11-16 22:51:54 -05:00
Thibault Meyer
623937cc48 Upgrade vendor "git" (#175) 2016-11-15 23:24:08 +08:00
Matthias Loibl
26a024a405 Merge pull request #171 from andreynering/gitea/editorconfig-crlf
.editorconfig: do not specify line ending
2016-11-15 12:06:41 +01:00
Thomas Boerger
cbfa980a4a fix variable assigned and not used. (#173)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-11-15 07:53:16 +01:00
Bo-Yi Wu
8c94965a88 fix variable assigned and not used.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-11-15 14:16:27 +08:00
Kim "BKC" Carlbäcker
df2f18c440 Merge pull request #169 from strk/allow-update-draft-releases
Allow updating draft releases while keeping them as draft
2016-11-14 21:48:21 +01:00
Andrey Nering
5f30f91561 Merge pull request #170 from strk/wiki-lint
Fix lint errors in models/wiki (just add methods docs)
2016-11-14 17:34:16 -02:00
Andrey Nering
3aad5c6e9f .editorconfig: do not specify line ending
That is annoying on Windows, since the editor will change the file if
you just open it. Git will checking as LF anyway.
2016-11-14 15:48:44 -02:00
Sandro Santilli
af0f2f686e Allow updating draft releases while keeping them as draft
Closes #162
2016-11-14 18:02:21 +01:00
Sandro Santilli
3e2566b25d Fix lint errors in models/wiki (just add methods docs)
See #70
2016-11-14 18:01:46 +01:00
Andrey Nering
a0e16ec421 Merge pull request #168 from appleboy/gofmt
fix gofmt error.
2016-11-14 15:00:02 -02:00
Bo-Yi Wu
b6a8acc967 fix gofmt error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-11-15 00:03:37 +08:00
Bo-Yi Wu
b35279a780 Fix broken link for Contributors Guide (#166)
* Fix broken link for Contributors Guide

* remove ./
2016-11-14 08:17:15 +01:00
Andrey Nering
c8faf267df Remember diff view style (#163) 2016-11-13 10:54:04 +08:00
Lunny Xiao
35bd596eff fixed bug #151 finally (#164) 2016-11-12 22:52:19 +08:00
LefsFlare
3049160a97 Fixes possible vulnerabilities with keyword hijacking (#20)
- Added public entries to reserved keywords list
- Rename variables
- Derped comment
2016-11-12 13:26:45 +01:00
Lunny Xiao
b77d834565 Bug fixed for issues (#156) 2016-11-12 13:06:33 +01:00
Thibault Meyer
dcdff45435 Upgrade vendor "git" (#161) 2016-11-12 12:09:25 +01:00
Lunny Xiao
e58350c440 replace footer gogs to gitea (#157) 2016-11-12 09:32:43 +01:00
Lunny Xiao
77d949dd16 bug fixed caused by #153 (#154) 2016-11-12 09:30:46 +01:00
Lunny Xiao
f28309e510 use in instead string join (#155) 2016-11-12 09:29:18 +01:00
Lunny Xiao
e0447d8fc1 fixed bug #151 caused Find should be Get (#153) 2016-11-12 00:01:09 +01:00
Matthias Loibl
de3aae127e Merge pull request #152 from lunny/lunny/optimization_in
optimization on database IN
2016-11-11 22:09:54 +01:00
Lunny Xiao
9343297ec9 optimization on database IN 2016-11-12 01:31:37 +08:00
Lunny Xiao
6512754a79 bug fixed for 500 caused by get org users (#149) 2016-11-12 00:55:06 +08:00
Lunny Xiao
7084de87dd Fix error 500 on organization dashboard page (#150) 2016-11-12 00:40:21 +08:00
Lunny Xiao
481f9e1f0f ask for go get from code.gitea.io/gitea and change gogs to gitea on main file (#146) 2016-11-11 14:56:35 +01:00
Thomas Boerger
6d6b771f43 Merge pull request #142 from 0xbaadf00d/feature/gofmt
Normalize files with gofmt
2016-11-11 14:44:30 +01:00
Thomas Boerger
3a471e650d Merge pull request #144 from strk/install-via-go
Add instructions to install via go
2016-11-11 14:43:07 +01:00
Sandro Santilli
d0ba79d8f3 Add info about installing via go 2016-11-11 13:35:58 +01:00
Thibault Meyer
43e3c1d1cc Normalize files with gofmt 2016-11-11 13:11:45 +01:00
Sandro Santilli
d246d7acb7 Fix import path of go-sdk (#141)
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
Andrey Nering
add2dd8223 Update home page to Gitea (#138) 2016-11-11 08:50:31 +08:00
Andrey Nering
9695edb952 Merge pull request #136 from 0xbaadf00d/feature/rewrite-xorm-queries
Rewrite raw queries
2016-11-10 21:18:34 -02:00