I have a gitlab server. Gitlab has its own hooks symlinked to every git repo. I wish to be able to tell the difference in between repos when that script is called. I seen this but I don't think it provides any useful information in this case.
Perhaps it may be possible to detect which repo the hook belongs to by figuring out where the script was executed from? (The original script is in ruby) Or possibly to check /home/git/git-data/repositories/<all git users>/<all repos>
for the right ref? Either way I do not know how to do that.