Original: A variation on this dish is known as shepherd's pie.
Simplified: In modern British English, the dish is usually called "cottage pie" if it is made with beef. If it is made with lamb it is usually called shepherd's pie.