Commit Graph

15 Commits (b39fab41c8b315ba7ddf9f9a4cc522385cf9f720)

Author SHA1 Message Date
Lunny Xiao c0c2624079 fix wrong system notice when repository is empty ()
Lunny Xiao d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
* 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
nemoinho ca112f0a04 Add whitespace handling to PR-comparsion ()
* 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>
Morgan Bazalgette 65861900cd Handle refactor ()
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound

* Change Handle(403) to NotFound, avoid using macaron's NotFound
Lunny Xiao f0df8e8dfa golint fixed for routers/repo/middlewares.go ()
Bwko 7b75d93f3d Fix for anonymous users to switch views
Bwko fc3ed8a1de Fix panic when no user is signed in
See 
Andrey Nering 739f07c98e Remember diff view style ()
Thibault Meyer ddee4c8b58
Normalize files with gofmt
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- 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
Sandro Santilli 6e4252dad4 Replace gogits/git-module dependency with go-gitea/git ()
* Replace gogits/git-module dependency with go-gitea/git

Fixes 

* Remove git alias for git module import (not needed)
Sandro Santilli f36544f98d Merge branch 'master' into feature/goimports
Andrey Nering bd898a10f8 Refactor editorconfig middleware
Matthias Loibl 1f44b01e2a Fix imports found by goimports.
Andrey Nering 984fa8d83b Fix 500 when repo has invalid .editorconfig
Creating a notice instead