I am working with GitHub enterprise and I don't have permissions to upload new pre-receive hooks to our repo.
I tried to test my hook as a pre-push hook and it was working like a charm, but when I sent my hook to our admin he said: "The GitHub pre-receive-hook script is different with git pre-receive-hook script. The git symbolic-ref --short HEAD may not work as your expected"
So I need to find a way to replace this command:
current_branch=$(git symbolic-ref --short HEAD) || exit 1
To a command that will save my current branch inside "current_branch" parameter?
How do I do that without the ability to test it?
