Skip to content

Commit

Permalink
pre-push.sample: Write error message to stderr
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
wking authored and gitster committed Sep 11, 2014
1 parent ce1d3a9 commit 1a947ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hooks--pre-push.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a947ba

Please sign in to comment.