Fixed internal error when trying to access git repository