Orthopaedics

Trendelenburg sign is positive in damage of the following nerve -