Fixes errors if git is disabled.