It failed miserably :D /dev/shm was owned by root:root. I've made it by my user:users, so hopefully the group permissions are correct for the git user. We try again, as none of you can even see the last update, or anything really, yet.
Update: It's still broken XD Let's see if doing things with reference to the current directory work, as it seems to be a mktemp issue mostly.
Update: Man, I suck at this stuff hehe. I know what user runs the script, at least. I did a recursive chown with that knowledge, let's hope something comes of it.