There exists a Git repo that is on one server, we want to generate doxygen output for it on a different server. The following command works for me but has the downside of sending a mail everytime the repo is updated because Git uses stderr for progress reporting (a quick search via the almighty oracle suggests they consider this behaviour a feature).
59 * * * * cd FQNameOfRepo; git pull 1>/dev/null; make doc-all 1>/dev/null; cp doc/latex/refman.pdf doc/html/
While I could
grep through the stderr output of Git or compare it to a known string this seems wrong. Am I using the wrong Git command? How would this be done properly?
For clarification I still want this command to send a mail if a real error occurs, so simply redirecting stderr won't help.