forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

repoguard: test printing messages

Changed files
+6
cmd
repoguard
+6
cmd/repoguard/main.go
···
"client": clientIP,
})
cmd := exec.Command(gitCommand, fullPath)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
···
"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