← Back to context

Comment by yencabulator

1 year ago

Plot twist: Gogs was never viable.

> In my point of view, as long as no deadlock..data race is unavoidable.

https://github.com/gogs/gogs/issues/613

> The payload comes from request somehow is not always in a clean format, so we have to preform a clean operation to remove unless characters:

    func cleanCommand(cmd string) string {
       i := strings.Index(cmd, "git")
       if i == -1 {
           return cmd
       }
       return cmd[i:]
    }

https://blog.gopheracademy.com/advent-2015/ssh-server-in-go/

https://github.com/gogs/gogs/issues/7777