DataDog/dogapi — pull request #97 by Joeasaurus (2014-06-11 07:52:05+00:00)
Title: Changed repo_name logic for bare repos

We use a central hook that we symlink to everywhere and were seeing pushes that said "Commit on gitlab-shell (master)", '/gitlab-shell/hooks' being where the hook is stored. I've changed the logic so it can deal with these symlinks and it will also not care if you run the hook from '/repo' or '/repo/hooks'.