The external hook plugin works and executes as expected but doesn't return any output via git remote
I am just trying to do some post operations but I want those remote operations to be visible to the users.
~/git/stash-test $ git push origin master
Counting objects: 13, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 292 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To git@git.priv.intermedix.com:stas/stash-test.git
5bfd072..661a51e master -> master
#!/bin/bash
(
echo "Script name: $0"
echo "Positional arguments: ${@}"
echo "STASH_USER_NAME: $STASH_USER_NAME"
echo "STASH_USER_EMAIL: $STASH_USER_EMAIL"
echo "STASH_REPO_NAME: $STASH_REPO_NAME"
echo "STASH_IS_ADMIN: $STASH_IS_ADMIN"
while read from_ref to_ref ref_name; do
echo "Ref update:"
echo " Old value: $from_ref"
echo " New value: $to_ref"
echo " Ref name: $ref_name"
echo " Diff:"
git show $to_ref | sed 's/^/ /'
done
) | tee -a /tmp/external-hooks-test.log@
-asdgdaghdagjkha
astghkasd;lthasdfasfasdfsadfasfd
agtjkhahga
atgkjhajl;dths