Commit Graph

55 Commits (338d03ce2f05fcc49a577b58a6cfa6beb7996fd1)

Author SHA1 Message Date
Lunny Xiao de8e3948a5
Refactor auth package ()
zeripath 8354670708
Prevent hang in git cat-file if repository is not a valid repository and other fixes ()
This PR contains multiple fixes. The most important of which is:

* Prevent hang in git cat-file if the repository is not a valid repository 
    
    Unfortunately it appears that if git cat-file is run in an invalid
    repository it will hang until stdin is closed. This will result in
    deadlocked /pulls pages and dangling git cat-file calls if a broken
    repository is tried to be reviewed or pulls exists for a broken
    repository.

    Fix 
    Fix 
    Fix 

Otherwise there are a few small other fixes included which this PR was initially intending to fix:

* Fix panic on partial compares due to missing PullRequestWorkInProgressPrefixes
* Fix links on pulls pages  due to regression from  - by making most /issues routes match /pulls too - Fix 
* Fix links on feeds pages due to another regression from  but also fix issue with syncing tags - Fix 
* Add missing locale entries for oauth group claims
* Prevent NPEs if ColorFormat is called on nil users, repos or teams.
a1012112796 ba57e30f13
fix 500 error while use a reserved name in org rename ()
fix 

Signed-off-by: a1012112796 <1012112796@qq.com>
Lunny Xiao 371ebce252
Fix database inconsistent when admin change user email ()
Lunny Xiao a666829a37
Move user related model into models/user ()
* Move user related model into models/user

* Fix lint for windows

* Fix windows lint

* Fix windows lint

* Move some tests in models

* Merge