fixed git repository checking process