I have many files in my project. Thousands of files. When I doing first push of my project into remote repo and after project is pushed - "Sending mail..." message stucks. I don't want to wait while email will be sent to developers. Is there a option by which the process that sending mails would work in the background?
What about something like this in the post-receive hook:
tempfile=$(mktemp)
cat >$tempfile
git-commit-notifier "$git_notifier_config"<$tempfile&# $tempfile is already open by git-commit-notifier so it's safe to delete now
rm -f $tempfile
Obviously don't expect a message if something goes wrong, so you may want to redirect the command's stdout/stderr to some file too.
And I haven't actually tested this, but if anything still hang on push you can try using setsid and redirecting outputs to some file or /dev/null, ex (notice there's no need for & with setsid):
Activity
akzhan commented on Nov 7, 2011
There is no option for yet.
I need to think about.
dermoth commented on Apr 3, 2012
What about something like this in the post-receive hook:
Obviously don't expect a message if something goes wrong, so you may want to redirect the command's stdout/stderr to some file too.
And I haven't actually tested this, but if anything still hang on push you can try using setsid and redirecting outputs to some file or /dev/null, ex (notice there's no need for & with setsid):
akzhan commented on Apr 3, 2012
Hm. @dermoth can you test and add this as readme section to the project?