From fd6bde80731e56d6bd35586ddaaf06536bd9df8f Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Fri, 23 Jul 2010 13:17:24 -0700 Subject: allow commit hook commands to write to stdout. (cherry picked from commit a213dd1c48581294fc967e7198d78ca270c6ae46) --- src/commit2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/commit2.c') diff --git a/src/commit2.c b/src/commit2.c index d45b7c0..884d2fe 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -369,6 +369,7 @@ main(int argc, char** argv) setenv(ENV_COMMIT_STATUS,"FAILURE",1); } struct dirent *dirp = NULL; + restore_output(); while ((dirp = readdir(dp)) != NULL) { if (strcmp(dirp->d_name, ".") != 0 && strcmp(dirp->d_name, "..") != 0) { -- cgit v1.2.3