Commit Graph

578 Commits (85449b2f11b3a0b13b7a37ac024a924435e15745)

Author SHA1 Message Date
Unknwon 35be8741c4 fix
Don Bowman 423b1c69be don't set mime type to text/plain. This will break serving e.g. raw images,
html, etc

According to http://golang.org/pkg/net/http/#DetectContentType
"If the Header does not contain a Content-Type line, Write adds
a Content-Type set to the result of passing the initial 512 bytes
of written data to DetectContentType."
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.
Unknwon 698b9e2acc Clearer error message for illegal characters
Unknwon 5169a0e025 mirror fix of
Linquize 3a977fc0ae Allow to migrate through git:// protocol
Unknwon 466facc009 : Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
Unknwon fc6db829b2 fix read access team visibility of private repo
Unknwon 588f3215c6 : dashboard no longer accessible when repo is missing
Unknwon 4aafeace23 fix HTTP/HTTPS push update func call panic and `http: multiple response.WriteHeader calls`
Unknwon 34102f7889 remove unused scripts and simplify migrate form definition
Filippo Valsorda 5d5d774e03 Handle submodules without a .gitmodules entry - fix
Unknwon 18c0697329 routers/repo/setting.go: fix LDAP cannot validate password
Unknwon b0b11fd7b1 Merge branch 'access' of github.com:gogits/gogs into dev
无闻 3a6ba39a61 Merge pull request from theangryangel/fix/ldap-auth
Attempt 3 to fix LDAP login issues when git pushing after password change
Gogs fab038b175 Attempt of ldap fixes
Unknwon 8896c82d34 models: fix issue with transfer repository
README: fix typo
Raphael Randschau 1f61340fa3 Properly calculate the number of open issues per label
Unknwon ee68a826a5 v4 migration, merge 'dev', clean code and mirror fix
Unknwon 10e4b5b6c6 Merge branch 'access' of github.com:gogits/gogs into access
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Unknwon 04164eada3 models: able to rename user with diff letter cases
- templates/org: mirror fix on name output
- routers: add missing error check
Unknwon 059338139c routers: able to migrate repo from local path
- modules/middleware/context.go: add HandleAPI method
无闻 fc4dff1b17 Merge pull request from phsmit/access_update
Updating context and fixing permission issues
Peter Smit e6fc58a744 Remove GoGet option from repository and handle it with ?go-get=1 instead
The normal go get protocol is to show the go-import meta tag when ?go-get=1 is appended to the url. This commit implements that behaviour and cleans the go-get option from the repository settings page.
Peter Smit ed89b39984 Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods

Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
Peter Smit f9454cc32c Make sure that a mirror can't be written to by http or ssh
Unknwon 6d0f3a07d4 code fix caution: undertest
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
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.
无闻 e805fdb29c Merge pull request from phsmit/newcollaboration
Collaboration
Peter Smit 0d158e569b Change constants to UPPERCASE_WITH_UNDERSCORE style
无闻 6ed96b7a20 Merge pull request from TonyTsangHK/dev
Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
Unknwon ba77a3b0b4 routers/repo/http.go: allow HTTP push/pull by token for
无闻 19525abfc4 Merge pull request from compressed/token_http
allow http push by token - 
Unknwon 5a99e9a37b models/action.go: add action reopen for
- models/issue.go: format comment type names
Unknwon afccd0a3ee models/action.go: mirror fix on
- modules/base/markdown.go: fix issue link issue
- routers/repo/view.go: remove useless code
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.
Tony Tsang fc6d80d619 Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
Peter Smit 03af37554e Merge branch 'dev' into newcollaboration
Unknwon 32152d2363 routers/repo: set raw page content type to 'text/plain'
Unknwon 37fcc8daf2 modules/base: add RenderCommitMessage with XSS-safe and special links
- update russian locale
Peter Smit 76f8904718 Introducing Collaboration Struct
无闻 edbfbfa66e Merge pull request from phsmit/fix_807
Fix  parse the userinfo with the golang tools
Christopher Brickley d0827e5d5e allow http push by token -
Unknwon c73e9057ae Optmize git-fsck options and fix
Peter Smit d016eaaa09 Fix parse the userinfo with the golang tools
Note, this is now only fixed with Go version >= 1.4.2, see this bug in Go: 07d86b1f2d
Unknwon 677b1ec627 fix
Thomas Laroche e948c7c262 Fix
Unknwon 1a5aa5e0c0 fix
Unknwon ac4a10456e api: able to create repo and fix
- POST /user/repos
- POST /org/:org/repos
Unknwon 2f3a7e53cb fix
codeskyblue db6c0ebf76 fix git clone error when repo has upper case name
Unknwon bc8721fb6c Finish new UI for release page
Unknwon 9a1fe801e5 fix
Joseph Crail 39c068400e Fix spelling errors in comments.
dennis-smurf 528c075ad6 Added issue link rendering in commit messages
Unknwon a43164877c fix
fuxiaohei 79dae254cf add milestone page design
Unknwon 32dcaefafa fox
fuxiaohei d1a60e3643 add pull-request and labels page design
Unknwon a0f9197b45 GetFile api
Unknwon 9dc3c93a6a , add/edit hook
Unknwon 21b9d5fa1f Fix
Unknwon abc57b6e43 work on
Unknwon 23eec25274 Fix , fix , fix
Unknwon 4e7eb5be9d Work on fork and fix
isotas38 2c28ed8c05 Fix
semlanik 377530ec21 Fix Issue 589
Christopher Brickley 3794111460 update slack hook to use new format
Tony Tsang d87a9cb362 Avoid setting missing label/milestone/assignee ids
Label, milestone, assignee ids are not includes in post request, possible
js or form building bug.
Tony Tsang 93b9a2acc0 Fix misuse of issue index for issue id.
- UpdateAssignee
- UpdateIssueMilestone
Unknwon a342d58d7e Able to fork repo to individuals
无闻 d7d167ac63 Merge pull request from evolvedlight/master
First cut of fork repo
Unknwon 3abc41ccca Fix API broken
Unknwon 1aa12c7452 Fix
evolvedlight 8d2a6fc484 Merge remote-tracking branch 'upstream/dev'
Conflicts:
	models/repo.go
Unknwon 963354c5d7 Add raw, history file button, and other mirror fixes
Unknwon b2632dec09 Page: Compare 2 commits
Unknwon 41dbb4c148 Hide org member in collar page
evolvedlight 211dc74816 Got the fork count working
Unknwon 64c68220d2 Fix
evolvedlight c9e5e38fcf Initial cut of git fork
Unknwon 2a031c1365 Fix
Unknwon a046a31d2b UI: Confirmation box
fuxiaohei 7d48f811f1 add issue router for new issue page ui preview
Unknwon b8368f98ff Add directory level commit message
lunnyxiao d1911658e1 remove debug info
Unknwon ad52b2d791 Mirror fix on transfer repo
Unknwon 977779cdcf Mirror template bug fix
Unknwon 25268577a5 Fix download archive issue
Unknwon 5bbeeb0f1b Page: Commits and fix
Unknwon 3f707b3f32 Add basic submodule support
lunnyxiao 7df60af60e submodule support and closed
lunnyxiao 79ec08141a Merge branch 'dev' of github.com:gogits/gogs into dev
lunnyxiao 150eef93b2 add submodule basic support & buf fixed
Martin van Beurden 976f1486e0 Set cookiepath to AppSubUrl
Unknwon 7ba9257a7f Add suburl support
Martin van Beurden 0055cbd365 Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts:
	modules/setting/setting.go

Conflicts:
	templates/repo/release/list.tmpl
	templates/user/dashboard/dashboard.tmpl

Conflicts:
	routers/repo/setting.go
Unknwon a596388ebf Add success message after transfer repository
lunnyxiao ed84adb679 toutf8 improved & add max git diff lines
Unknwon a2cac952a4 Prepare 0.5 release
Unknwon cfed11f092 Bug: Transfer repository doesn't update the count
Unknwon 25d6ae69d1 Remove hg dep
无闻 e79e4b1580 Merge pull request from compressed/org_hook
Organization-level Webhooks
Christopher Brickley f7be61c819 getOrgRepoCtx returns values directly & err
Christopher Brickley 85c35a6b8b add organization-level webhooks
Christopher Brickley 7269b06fd5 HookType is case-sensitive
Update webhook wasn’t showing up because of the wrong case
Vyacheslav Bakhmutov 6498fce04b Render milestone content as markdown
Vyacheslav Bakhmutov 2a7a03e5b3 take params for milestone and assignee from query instead of path args
Christopher Brickley 00a864e693 add commit compare functionality
Christopher Brickley 2bce24068d add Slack API webhook support
Unknwon 904bf1a50b Add migrate repo API
Unknwon 9baf2b38d0 Bug fix on organization
Unknwon 21a1b8e5a3 Finish new edit team page, add member to team
Unknwon b765229a6d Fix code style
lunnyxiao 97fb62f51e auto detect text file encode and convert to utf8
Unknwon 36b4c57ff1 Finish new organization members and invitation page
Unknwon 5fbf8531e6 Finish new home page of organization
Unknwon 9a1d5d2489 Finish new web hook pages
Unknwon 9820b8e134 Finish new hooks list page
Unknwon e8c9bb2c66 Finish new collaboration page
Unknwon 755eec745f Finish new repo settings page
Unknwon dabf5b057c Finish new migrate page
Unknwon 9813161411 Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
Justin Nuß 7de3dd01de Use :index instead of :issue in UpdateIssueMilestone
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!!
Unknwon 8dd07c0ddd New UI merge in progress
Justin Nuß 12fb42de5a Fix IE bug and show errors.
Justin Nuß 4e2477a1a5 Fix . Switch to JS(ON) implementation for issue/comment creation.
Justin Nuß dedb156d4a Fix . Allow empty comments as long as there are attachments.
Justin ad7beb78d0 Fix . Quote file names of attachments.
Justin Nuß 620c0ef297 Merge branch 'dev' of https://github.com/gogits/Gogs into trello/244
Justin Nuß cbcd08aa17 Mention organisation users when organisation gets mentioned
Justin Nuß 4d702eb345 Allow disabling uploads
Justin Nuß bfe5b86004 Add file upload for attachments
Justin Nuß 43e5de7f83 Show attachments in issues/comments and add preview for images
Justin Nuß ef1cbcd761 Allow admins to delete attachments.
Justin Nuß 967856f36e Merge branch 'dev' into feature/attachments
Conflicts:
	models/issue.go
	routers/repo/issue.go
Justin Nuß d43c5895bc Update template and style, only close commit if commit is in same repository
Justin Nuß 3c025b3950 Add delete route for attachments, remove upload buttons from issues/comments
Justin Nuß 34304e6a0c WIP: Allow attachments for issues, not only comments
Justin Nuß 4617bef895 WIP: Allow attachments for comments
Justin Nuß 469cbc8813 Update progress of milestones when closing/reopening issues and allow closing of issues in commit messages
Justin Nuß 812f71e21b Update milestone issue stats when reopening/closing issue
Unknown be8ac7fb75 fix
Unknown 13b032f829 update name
Unknown e4ea5cf598 Finish Teams page
Unknown 99713e1180 Merge branch 'dev' of github.com:gogits/gogs into dev
Unknown 5dbfe3c26c Finish organization homepage
Lunny Xiao 4ce2fa520a Merge branch 'master' into dev
Lunny Xiao 86e2627175 Merge branch 'master' of github.com:gogits/gogs
Conflicts:
	models/update.go
	routers/repo/http.go
Lunny Xiao e5ae41e21f bug fixed
Unknown 6e448b0714 Finish delete organization
Unknown 57ac15aa20 Merge branch 'master' of github.com:gogits/gogs into dev
Lunny Xiao 7dbeee94e3 bug fixed
Unknown 32b09681b2 Migrate repository by organization
Unknown 43b33440b5 Work on create organization repo and
Unknown 4cf7a1fca5 Mirror update on create repo page
Unknown e0f9c628c5 Add create organization
Unknown 47d29a1ee0 Mirror fix on
Unknown 314193029a Use constants to name template file
Unknown 9924e65ca1 In progress of name template name constant
Unknown ad5ec45dd6 Fix
Unknown 8bfa7ae745 Remove qiniu/log
Unknown e07674bff1 Support edit release and save as draft
Unknown fb0972afad Fix
Unknown 9961f9a53c Fix
Unknown 302c863cda Fix
Unknown 9c3aa6936a Fix
Jan Oliver Oelerich 6fe43eb8d4 Fixed directory permissions for the zip download router
If the archives/ directory is created with 0655, it results in a permission error.
Unknown fbf274b751 Fix
Unknown 422043f422 Fix
Unknown 617bbe3fee Fix
Unknown 9085dfa426 Working on
slene e323604d78 display large file
slene 4ee6bc4fca fix for new git api
Unknown ff690fd976 Fix , add VERSION to template files
Unknown bf5fcfb49c Add * to selected label
Unknown 688ec6ecbd Fixed
Unknown 87854c95a9 Fixed
Unknown dce17c86ac Almost done issue label
Unknown b1bdbd7f94 Almost done issue label
FuXiaoHei 1331134316 finish issue edit content preview
Unknown 93f8f92523 Finish create new label
Unknown 04890904f9 fix
Unknown 956f011dd3 Fix
Unknown db6b71ad03 Update issue-user when change milestone
Unknown b70db61854 Fix
Unknown 16bddd593a Finish change issue’s milestone
Unknown 46fc36c3a6 Finish change issue’s milestone
Unknown 9100786beb Fix
Unknown 5ed5aa5228 Finish milestone
Unknown 33ec0632ff Fix
Unknown 2eee1e9bc2 Finish edit a milestone
Unknown c117f9e73f Fix
Unknown 54e95fa367 Finish add new milestone
FuXiaoHei 1769bb2f26 add milestone edit ui
Unknown 68fb62347f Finish issue assignee
slene 7d84cc96e8 update with git api