ridge started into it cautiously , expecting it to reach a dead end at any moment , but it kept going on and on , rising sharply in some places and turning abruptly in others , but always passable to a man on foot .