Monorepo for Tangled tangled.org

repoguard: test printing messages

Changed files
+6
cmd
repoguard
+6
cmd/repoguard/main.go
··· 112 "client": clientIP, 113 }) 114 115 cmd := exec.Command(gitCommand, fullPath) 116 cmd.Stdout = os.Stdout 117 cmd.Stderr = os.Stderr
··· 112 "client": clientIP, 113 }) 114 115 + if gitCommand == "git-upload-pack" { 116 + fmt.Fprintf(os.Stderr, "\x02%s\n", "Welcome to this knot!") 117 + } else { 118 + fmt.Fprintf(os.Stderr, "%s\n", "Welcome to this knot!") 119 + } 120 + 121 cmd := exec.Command(gitCommand, fullPath) 122 cmd.Stdout = os.Stdout 123 cmd.Stderr = os.Stderr