John Olheiser
baadb51445
Add gitea-vet ( #10948 )
* Add copyright
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add gitea-vet and fix non-compliance
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Combine tools.go into build.go and clean up
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove extra GO111MODULE=on
Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago
Lunny Xiao
c0c2624079
fix wrong system notice when repository is empty ( #9010 )
5 years ago
Lunny Xiao
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ( #6364 )
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
5 years ago
nemoinho
ca112f0a04
Add whitespace handling to PR-comparsion ( #4683 )
* Add whitespace handling to PR-comparsion
In a PR we have to keep an eye on a lot of different things. But sometimes the
bare code is the key-thing we want to care about and just don't want to care
about fixed indention on some places. Especially if we follow the pathfinder
rule we face a lot of these situations because these changes don't break the
code in many languages but improve the readability a lot.
So this change introduce a fine graned button to adjust the way how the
reviewer want to see whitespace-changes within the code.
The possibilities reflect the possibilities from git itself except of the
`--ignore-blank-lines` flag because that one is also handled by `-b` and is
really rare.
Signed-off-by: Felix Nehrke <felix@nehrke.info>
6 years ago
Morgan Bazalgette
65861900cd
Handle refactor ( #3339 )
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
6 years ago
Lunny Xiao
f0df8e8dfa
golint fixed for routers/repo/middlewares.go ( #204 )
8 years ago
Bwko
7b75d93f3d
Fix for anonymous users to switch views
8 years ago
Bwko
fc3ed8a1de
Fix panic when no user is signed in
See #188
8 years ago
Andrey Nering
739f07c98e
Remember diff view style ( #163 )
8 years ago
Thibault Meyer
ddee4c8b58
Normalize files with gofmt
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
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
Andrey Nering
bd898a10f8
Refactor editorconfig middleware
8 years ago
Matthias Loibl
1f44b01e2a
Fix imports found by goimports.
8 years ago
Andrey Nering
984fa8d83b
Fix 500 when repo has invalid .editorconfig
Creating a notice instead
8 years ago