aboutsummaryrefslogtreecommitdiff
path: root/git_hooks_client
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-18 16:47:06 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-18 16:47:06 +0800
commit1849f6c0b7d467ede5858ac057af16083a380080 (patch)
tree723b2dfe30611eb6bde59a8ea6b3adafd0246fc7 /git_hooks_client
parent*.go: Reformat (diff)
downloadforge-1849f6c0b7d467ede5858ac057af16083a380080.tar.gz
forge-1849f6c0b7d467ede5858ac057af16083a380080.tar.zst
forge-1849f6c0b7d467ede5858ac057af16083a380080.zip
git_hooks_client.c: Don't print wrongly-lengthed cookies
Diffstat (limited to 'git_hooks_client')
-rw-r--r--git_hooks_client/git_hooks_client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/git_hooks_client/git_hooks_client.c b/git_hooks_client/git_hooks_client.c
index 6471aa8..8024b53 100644
--- a/git_hooks_client/git_hooks_client.c
+++ b/git_hooks_client/git_hooks_client.c
@@ -27,8 +27,7 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
if (strlen(cookie) != 64) {
- dprintf(STDERR_FILENO, "environment variable LINDENII_FORGE_HOOKS_COOKIE is not 64 characters long, something has gone wrong\n");
- dprintf(STDERR_FILENO, "%s\n", cookie);
+ dprintf(STDERR_FILENO, "environment variable LINDENII_FORGE_HOOKS_COOKIE is not 64 characters long\n");
return EXIT_FAILURE;
}