The post-receive-email hook usually gets its arguments through stdin, but also supports them to be specified at the command line. The order of the arguments should consistently follow the documentation no matter how they are passed to the script. This was noticed and suggested by martin f krafft through http://bugs.debian.org/428413 Signed-off-by: Gerrit Pape <pape@xxxxxxxxxxx> --- contrib/hooks/post-receive-email | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index c589a39..f84532f 100644 --- a/contrib/hooks/post-receive-email +++ b/contrib/hooks/post-receive-email @@ -605,7 +605,7 @@ envelopesender=$(git-repo-config hooks.envelopesender) if [ -n "$1" -a -n "$2" -a -n "$3" ]; then # Output to the terminal in command line mode - if someone wanted to # resend an email; they could redirect the output to sendmail themselves - PAGER= generate_email $2 $3 $1 + PAGER= generate_email $1 $2 $3 else if [ -n "$envelopesender" ]; then envelopesender="-f '$envelopesender'" -- 1.5.2.1 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html