Scatter the cooled shallots and grated cheese over the pastry, add a generous grinding of black pepper and fold the long sides over towards each other to meet in the middle. Brush a little egg down the centre to stick the two halves together so you have one long, fat strip.