Moved to safeguarded git calls