Only run rsync if cvs is successful, and only update timestamp if both are successful, this will avoid newer timestamps on failed cvs/rsync calls
Update the mirror script to use git.
Do not bother updating if there have not been any changes.
Make sure the .git directory is excluded.
Fixes suggested by shellcheck.

http://www.shellcheck.net/