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 <wking@tremily.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>
W. Trevor King committed
Sep 11, 2014 at 13:35 UTC
1a947ba3a3eebea80be6a6d1000614884807bc8b
1 file changed
+1
-1
templates/hooks--pre-push.sample
+1
-1
@@ -45,7 +45,7 @@ do
45
commit=`git rev-list -n 1 --grep '^WIP' "$range"`
46
if [ -n "$commit" ]
47
then
48
- echo "Found WIP commit in $local_ref, not pushing"
48
+ echo >&2 "Found WIP commit in $local_ref, not pushing"
49
exit 1
50
fi
51
fi