I have a pre_receive hook in pre-receive.d folder of git repo, written in shell script, hook is getting executed correctly but the stash env variables are not available with it i.e they return empty values, Is there any server side configuration required for env variables?
#!/bin/sh
echo "pre-receive message 30"
echo "STASH_USER_EMAIL:-"$STASH_USER_EMAIL
echo "STASH_PROJECT_NAME:-"$STASH_PROJECT_NAME
returns
remote: pre-receive message 30
remote: STASH_USER_EMAIL:-
remote: STASH_PROJECT_NAME:-
Any help will be highly appreciated.