From 30edc6035c6eb7b7706c52f93a4a6ea4f08effa5 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Wed, 5 Feb 2025 08:48:03 +0200 Subject: [PATCH] repoguard: test printing messages --- cmd/repoguard/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/repoguard/main.go b/cmd/repoguard/main.go index 23afdd8..53e195d 100644 --- a/cmd/repoguard/main.go +++ b/cmd/repoguard/main.go @@ -112,6 +112,12 @@ func main() { "client": clientIP, }) + if gitCommand == "git-upload-pack" { + fmt.Fprintf(os.Stderr, "\x02%s\n", "Welcome to this knot!") + } else { + fmt.Fprintf(os.Stderr, "%s\n", "Welcome to this knot!") + } + cmd := exec.Command(gitCommand, fullPath) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr -- knotmirror 0.0.1