I am trying to use the External Hooks plugin as a pre-receive hook. If I try to echo my standard input, I do not see the three parameters that are supposed to be passed. That is, I do not see from_ref, to_ref, ref_name. The hook follows:
#!/bin/sh
echo "My First Hook"
echo $STASH_USER_NAME
echo $STASH_USER_EMAIL
echo $1
exit 0
The user name and email are successful. The '$1' is empty.
What did I do wrong?