Skip to content

Commit

Permalink
Merge pull request #80424 from chendave/doc
Browse files Browse the repository at this point in the history
update guide to make the command works as expected
  • Loading branch information
k8s-ci-robot committed Jul 30, 2019
2 parents d248bd0 + 5d268b9 commit a1a8641
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions test/images/agnhost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,14 @@ Usage:

### fake-gitserver

Fakes a git server. When doing `git clone localhost:8000`, you will clone an empty git
repo named `8000` on local. You can also use `git clone localhost:8000 my-repo-name` to
rename that repo.
Fakes a git server. When doing `git clone http://localhost:8000`, you will clone an empty git
repo named `localhost` on local. You can also use `git clone http://localhost:8000 my-repo-name` to
rename that repo. Access to the service with the backing pod will show you below information.

```console
curl -w "\n" http://localhost:8000
I am a fake git server
```

Usage:

Expand Down
4 changes: 2 additions & 2 deletions test/images/agnhost/fakegitserver/gitserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
var CmdFakeGitServer = &cobra.Command{
Use: "fake-gitserver",
Short: "Fakes a git server",
Long: `When doing "git clone localhost:8000", you will clone an empty git repo named "8000" on local.
You can also use "git clone localhost:8000 my-repo-name" to rename that repo.`,
Long: `When doing "git clone http://localhost:8000", you will clone an empty git repo named "localhost" on local.
You can also use "git clone http://localhost:8000 my-repo-name" to rename that repo.`,
Args: cobra.MaximumNArgs(0),
Run: main,
}
Expand Down

0 comments on commit a1a8641

Please sign in to comment.