From faff9047407fd19c51961f9f1e8d6d910b318a08 Mon Sep 17 00:00:00 2001 From: Henrik Riomar Date: Wed, 15 Feb 2017 23:00:04 +0100 Subject: [PATCH] commit: log parameter passed to a hook script --- src/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commit.c b/src/commit.c index ae43474..ae9e2c9 100644 --- a/src/commit.c +++ b/src/commit.c @@ -235,7 +235,7 @@ static int run_commit_hook(void *ctx, int dirfd, const char *file) return 0; snprintf(fn, sizeof(fn), "etc/apk/commit_hooks.d" "/%s", file); - if (apk_verbosity >= 2) apk_message("Executing: %s", fn); + if (apk_verbosity >= 2) apk_message("Executing: %s %s", fn, commit_hook_str[hook->type]); if (apk_db_run_script(db, fn, argv) < 0 && hook->type == PRE_COMMIT_HOOK) return -1;