1
0
Fork 0
forked from NYANDEV/forgejo
Commit graph

9 commits

Author SHA1 Message Date
zeripath
20c2bdf86b
Ensure BlameReaders close at end of request () ()
Backport 

this was thought to be due to timeouts, however on closer look this
appears to be due to the Close() function of the BlameReader hanging
with a blocked stdout pipe.

This PR fixes this Close function to:

* Cancel the context of the cmd
* Close the StdoutReader - ensuring that the output pipe is closed

Further it makes the context of the `git blame` command a child of the
request context - ensuring that even if Close() is not called, on
cancellation of the Request the blame is command will also be cancelled.

Fixes 
Closes 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-07-01 18:43:25 +03:00
6543
a1f11a05e9
Load Repo Topics on blame view ()
Fix 
2020-05-05 22:51:49 +01:00
zeripath
e6baa656f7
make avatar lookup occur at image request ()
speed up page generation by making avatar lookup occur at the browser
not at page generation

* Protect against evil email address ".."

* hash the complete email address

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-Authored-By: Lauris BH <lauris@nix.lv>
2020-03-27 14:34:39 +02:00
Benno
7bb817e6d1 Respect LFS File Lock on UI ()
* update  respect file locking

* upate  Add LFS locker information

* update  enhance coding style and return error
2019-10-29 23:32:21 +02:00
Lunny Xiao
85202d4784
Display ui time with customize time location ()
* display ui time with customize time location

* fix lint

* rename UILocation to DefaultUILocation

* move time related functions to modules/timeutil

* fix tests

* fix tests

* fix build

* fix swagger
2019-08-15 22:46:21 +08:00
Lunny Xiao
edc94c7041 Monitor all git commands; move blame to git package and replace git as a variable ()
* monitor all git commands; move blame to git package and replace git as a variable

* use git command but not other commands

* fix build

* move exec.Command to git.NewCommand

* fix fmt

* remove unrelated changes

* remove unrelated changes

* refactor IsEmpty and add tests

* fix tests

* fix tests

* fix tests

* fix tests

* remove gitLogger

* fix fmt

* fix isEmpty

* fix lint

* fix tests
2019-06-26 14:15:26 -04:00
kolaente
f9ec2f89f2 Add golangci () 2019-06-12 15:41:28 -04:00
iliyan ivanov
13583a650f fix syntax highlight in blame view () 2019-05-11 23:27:39 +03:00
Andrzej Ressel
469d9b7d9a Add option to blame files () 2019-04-19 22:47:00 -04:00