Not so nice to use try/except here, but simplest solution to avoid failing in case git commands fail for some reason...