From 5d268b95705d262f84c967d3faecf1b748624371 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Mon, 22 Jul 2019 18:29:25 +0800 Subject: [PATCH] update guide to make the command works as expected Signed-off-by: Dave Chen --- test/images/agnhost/README.md | 11 ++++++++--- test/images/agnhost/fakegitserver/gitserver.go | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test/images/agnhost/README.md b/test/images/agnhost/README.md index 771d53967ee..f032d756ae6 100644 --- a/test/images/agnhost/README.md +++ b/test/images/agnhost/README.md @@ -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: diff --git a/test/images/agnhost/fakegitserver/gitserver.go b/test/images/agnhost/fakegitserver/gitserver.go index 6ae1d67404e..40a29ed4c26 100644 --- a/test/images/agnhost/fakegitserver/gitserver.go +++ b/test/images/agnhost/fakegitserver/gitserver.go @@ -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, }