I have a post-receive hook that just calls /usr/share/git-core/contrib/hooks/post-receive-email

I'd like it to run in the background so that git does not get delayed after a commit. I've tried various techniques (exec, piping to "at now", nohup) but when I use any of these techniques no email gets sent. I suspect this has something to do with the use of stdin to pass in the args to the hook.

I guess I need to capture stdin but I've no idea how to do that.

Any suggestions?