Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Background processes in post-receive hook

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:58

James Pickens [off-list ref] writes:
I have a post-receive hook (bash script) that launches several background
processes and exits immediately.  I do that so I don't have to wait for the
background processes to finish every time I push to the repository, but Git
seems to wait for them to finish anyways, even though the post-receive hook
itself already exited.  Is there any way to stop Git from waiting and let the
push finish immediately?
An easy way to do that is to run whatever lengthy process you do not want
to wait for using

	echo "that command" | at now

in the hook ;-).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help