Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update guide to make the command works as expected #80424

Merged
merged 1 commit into from
Jul 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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