update.sh: keep refs packed after an update
If a mirror fetch succeeds and ends up changing any refs, go
ahead and run `git pack-refs --all` to pack them all up again.
Mirrors that often fetch changes may rack up an awful lot of
loose refs that impede performance.
Since mirror updates only happen every once in a while it's
reasonable to always pack-refs at the end of an update that
actually fetches any ref changes.
If for some reason git is unable to pack and prune all the refs
(perhaps some kind of directory permissions issue), it's safe to
just ignore the error and continue anyway as all the refs will
still be there, just not fully packed.
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>