better error reporting (on stderr)
don't pipe git output to stdout

and more robust updating of git repo