Commit Graph

10 Commits (57a69ef277546414893a38feb70412aa4c32330e)

Author SHA1 Message Date
Mura Li f4d12f8d97 Fix run command race ()
* 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
Matthias Loibl d1006150fb Refactor process package and introduce ProcessManager{} with tests ()
* Add a process.Manager singleton with process.GetManager()

* Use process.GetManager everywhere

* Fix godoc comments for process module

* Increment process counter id after locking the mutex
Mura Li 9aaf2a6d9a modules/process: add ExecDirEnv (next to ExecDir)
Add a sibling to ExecDir which is capable of specifying environment variables,
so that we can invoke `git` with GIT_INDEX_FILE, GIT_DIR, etc..

For 
Sandro Santilli ad3d6b7fff Lint and document manager api
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
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon c50a3503e6 introduce git-shell
Unknwon 8dd07c0ddd New UI merge in progress
Unknown 097c8e05e6 Able to set timeout for process monitor
Unknown f147ad619a Basic process manager