135 Commits (ac701637b42d2d6bb5fe9b258f3f54959b6a505e)

Author SHA1 Message Date
Lunny Xiao f0db3da713 fix go get sub package and add domain on installation to let go get work defaultly (#1518)
* fix go get sub package and add domain on installation to let go get work defaultly

* fix import sequence

* fix .git problem
7 years ago
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment (#1247) 7 years ago
Lunny Xiao cd1821a7e2 Move push update to post-receive and protected branch check to pre-receive (#1030)
* move all push update to git hook post-receive and protected branch check to git hook pre-receive

* add SSH_ORIGINAL_COMMAND check back

* remove all unused codes

* fix the import
7 years ago
Willem van Dreumel 01d957677f Oauth2 consumer (#679)
* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)

* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)

* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
7 years ago
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
7 years ago
Bo-Yi Wu 6510e57758 fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Gogs 37eec6c9b7 push + pull now works with reverse proxy + basic auth on apache 2.4 8 years ago
Lunny Xiao 47a7529d96 update code.gitea.io/git (#450) 8 years ago
Lunny Xiao 3917ed45de golint fixed for routers (#208) 8 years ago
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
8 years ago
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode* 8 years ago
Rachid Zarouali be5607e510 Merge pull request #50 from 0xbaadf00d/feature/2583-disablehttpcloning
Disable HTTP cloning
8 years ago
Sandro Santilli 6e4252dad4 Replace gogits/git-module dependency with go-gitea/git (#94)
* Replace gogits/git-module dependency with go-gitea/git

Fixes #92

* Remove git alias for git module import (not needed)
8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Thibault Meyer 93f1eabe30
rename variable + fix wiki link 8 years ago
Thibault Meyer 9d66497abc
Can disable GIT interactions by HTTP protocol 8 years ago
Unknwon a00c932bbc General code quality improvement 8 years ago
Unknwon dccb0c15b9 Replace convert.To with APIFormat calls 8 years ago
Unknwon 3f7f4852ef #2246 fully support of webhooks for pull request 8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 8 years ago
Franz Schmidt 8b35c194ec Fixes #3110 (#3136) 8 years ago
Unknwon c041273dd3 repo/http: clean code 8 years ago
Unknwon 60ae8ac3d2 Add route for #2846 8 years ago
Unknwon 514382e2eb Rename module: middleware -> context 8 years ago
Unknwon 338af89d56 #2650 fix possbility that use email as pusher user name
Remove the possibility of using email as user name when user actually push
through combination of email and password with HTTP.

Also refactor update action function to replcae tons of arguments with
single PushUpdateOptions struct.
And define the user who pushes code as pusher, therefore variable names shouldn't
be confusing any more.
8 years ago
Florian Kaiser 0e4ae27caa Use pretty 404 pages in repo.HTTPBackend 9 years ago
zhuharev 0d5dc8a064 typo fix 9 years ago
Unknwon a62290de52 #2311 improve HTTP auth error message 9 years ago
Unknwon 40f3142264 #2114 External URL for wiki 9 years ago
Unknwon 830d000667 finish wiki 9 years ago
Unknwon c50a3503e6 introduce git-shell 9 years ago
Unknwon 0128036514 #1681 some fixes for builtin SSH server on Windows 9 years ago
Unknwon b55499d039 go vet and fix #1890 9 years ago
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply 9 years ago
Unknwon 2ac8e11f46 #842 able to use access token replace basic auth 9 years ago
Unknwon 03b85b73af token recent activity 9 years ago
Unknwon d17f102339 try to fix HTTP ops not GC 9 years ago
Unknwon 407385db7e work on #1493 9 years ago
Unknwon dea3a8c6a4 WIP: create PR - choose branch 9 years ago
Unknwon e50982f5ec allow anonymous SSH clone 9 years ago
Unknwon fa298a2c30 #835: Realtime webhooks 9 years ago
Linquize f26f8d5afa Set Content-Type to text/plain for http status 401
This is because git command line shows the failure reason only if Content-Type is text/plain.
9 years ago
Unknwon 588f3215c6 #1040: dashboard no longer accessible when repo is missing 9 years ago
Unknwon 4aafeace23 fix HTTP/HTTPS push update func call panic #1037 and `http: multiple response.WriteHeader calls` 9 years ago
Unknwon b0b11fd7b1 Merge branch 'access' of github.com:gogits/gogs into dev 9 years ago
Gogs fab038b175 Attempt #3 of ldap fixes 9 years ago
Peter Smit f9454cc32c Make sure that a mirror can't be written to by http or ssh 10 years ago
Unknwon 6d0f3a07d4 code fix #941 caution: undertest 10 years ago
Peter Smit 6c1ee384f1 Merge remote-tracking branch 'mine/access_refactor' into access_refactor
Conflicts:
	cmd/serve.go
	models/access.go
	models/migrations/migrations.go
	models/org.go
	models/repo.go
	models/user.go
	modules/middleware/org.go
	modules/middleware/repo.go
	routers/api/v1/repo.go
	routers/org/teams.go
	routers/repo/http.go
	routers/user/home.go
10 years ago
Peter Smit 0a4cda0dd4 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
10 years ago
Peter Smit 0d158e569b Change constants to UPPERCASE_WITH_UNDERSCORE style 10 years ago
Unknwon ba77a3b0b4 routers/repo/http.go: allow HTTP push/pull by token for #845 10 years ago
Peter Smit 4e79adf6b5 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
10 years ago
Christopher Brickley d0827e5d5e allow http push by token - #842 10 years ago
codeskyblue db6c0ebf76 fix git clone error when repo has upper case name 10 years ago
Unknwon 32dcaefafa fox #620 10 years ago
Unknwon abc57b6e43 work on #609 10 years ago
Unknwon 3abc41ccca Fix API broken 10 years ago
Unknwon 1aa12c7452 Fix #572 10 years ago
lunnyxiao d1911658e1 remove debug info 10 years ago
lunnyxiao 150eef93b2 add submodule basic support & buf fixed #478 10 years ago
Unknwon 755eec745f Finish new repo settings page 10 years ago
Unknwon 8dd07c0ddd New UI merge in progress 10 years ago
Lunny Xiao 86e2627175 Merge branch 'master' of github.com:gogits/gogs
Conflicts:
	models/update.go
	routers/repo/http.go
10 years ago
Lunny Xiao e5ae41e21f bug fixed #261 10 years ago
Unknown 57ac15aa20 Merge branch 'master' of github.com:gogits/gogs into dev 10 years ago
Lunny Xiao 7dbeee94e3 bug fixed #236 10 years ago
Unknown e0f9c628c5 Add create organization 10 years ago
Unknown 47d29a1ee0 Mirror fix on #248 10 years ago
Unknown 8bfa7ae745 Remove qiniu/log 10 years ago
Unknown fbf274b751 Fix #220 10 years ago
Unknown 688ec6ecbd Fixed #209 10 years ago
Unknown 7b60756f2c Fix Collaborators cannot commit 10 years ago
Unknown 1bfe4ee665 Merge branch 'master' of github.com:gogits/gogs 10 years ago
Unknown 2dc0329c5f Fix auth issue on #80 10 years ago
Unknown 6277f8497c Auth problem related #80 10 years ago
Christopher Brickley 4c5a6e4d87 swap \n for \000, update len check, when reading receive-pack input 10 years ago
Lunny Xiao 4210f56dbc bug fixed for http clone 10 years ago
Lunny Xiao ee2d8d2469 remove trace 10 years ago
Lunny Xiao db39e58a13 add actions for http push 10 years ago
zhsso a4cbe79567 fix 10 years ago
zhsso f3ed11d177 mistakes 10 years ago
Lunny Xiao a24c0b92e4 bug fixed 10 years ago
Lunny Xiao 94c7278194 Merge branch 'master' of github.com:gogits/gogs into dev
Conflicts:
	web.go
10 years ago
Lunny Xiao 16b6e5d50b bug fixed 10 years ago