tokarchuk/v1.17
Unknown 11 years ago
parent 29e9b8c3c4
commit a9a5fb45f8
  1. 3
      README.md
  2. 7
      serve.go

@ -16,9 +16,12 @@ Please see [Wiki](https://github.com/gogits/gogs/wiki) for project design, devel
- SSH protocal support. - SSH protocal support.
- Register/delete account. - Register/delete account.
- Create public repository. - Create public repository.
- Git repository manipulation.
## Installation ## Installation
Make sure you install [Prerequirements](https://github.com/gogits/gogs/wiki/Prerequirements) first.
There are two ways to install Gogs: There are two ways to install Gogs:
- [Install from binary](https://github.com/gogits/gogs/wiki/Install-from-binary) - [Install from binary](https://github.com/gogits/gogs/wiki/Install-from-binary)

@ -30,10 +30,7 @@ var CmdServ = cli.Command{
Description: ` Description: `
gogs serv provide access auth for repositories`, gogs serv provide access auth for repositories`,
Action: runServ, Action: runServ,
Flags: []cli.Flag{ Flags: []cli.Flag{},
//cli.BoolFlag{"update, u", "update pakcage(s) and dependencies if any"},
//cli.BoolFlag{"verbose, v", "show process details"},
},
} }
func In(b string, sl map[string]int) bool { func In(b string, sl map[string]int) bool {
@ -61,7 +58,7 @@ func runServ(*cli.Context) {
cmd := os.Getenv("SSH_ORIGINAL_COMMAND") cmd := os.Getenv("SSH_ORIGINAL_COMMAND")
if cmd == "" { if cmd == "" {
println("Hi %s! You've successfully authenticated, but Gogits does not provide shell access.\n", user.Name) printf("Hi %s! You've successfully authenticated, but Gogs does not provide shell access.\n", user.Name)
return return
} }

Loading…
Cancel
Save