prevent error when not in a git repository