git-wrapper: ensure the child process exit code is returned.