1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-22 07:34:26 +00:00
Mura Li f4d12f8d97 Fix run command race (#1470)
* Use exec.CommandContext to simplfy timeout handling

And fixing the data races which can be identified by the added tests when -race enabled.

* Use sleep commmand instead of reading from stdin

* Make the error handling go-esque
2017-11-13 22:51:45 +08:00
..
2017-10-26 09:37:33 +08:00
2017-10-26 08:49:16 +08:00
2017-10-27 09:10:54 +03:00
2017-09-19 11:08:30 +03:00
2016-12-31 00:44:54 +08:00
2017-11-13 22:51:45 +08:00
2017-01-28 23:14:56 +01:00
2017-10-27 09:10:54 +03:00
2016-11-24 17:37:11 +08:00
2017-10-27 09:10:54 +03:00