From 1a947ba3a3eebea80be6a6d1000614884807bc8b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 11 Sep 2014 13:35:30 -0700 Subject: pre-push.sample: Write error message to stderr githooks(5) suggests: Information about why the push is rejected may be sent to the user by writing to standard error. So follow that advice in the sample. Signed-off-by: W. Trevor King Signed-off-by: Junio C Hamano --- templates/hooks--pre-push.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/hooks--pre-push.sample') diff --git a/templates/hooks--pre-push.sample b/templates/hooks--pre-push.sample index 1f3bcebfd7..69e3c67b00 100755 --- a/templates/hooks--pre-push.sample +++ b/templates/hooks--pre-push.sample @@ -45,7 +45,7 @@ do commit=`git rev-list -n 1 --grep '^WIP' "$range"` if [ -n "$commit" ] then - echo "Found WIP commit in $local_ref, not pushing" + echo >&2 "Found WIP commit in $local_ref, not pushing" exit 1 fi fi -- cgit v1.2.3