Don't checkout HEAD if local repository