Add the onions , rosemary and the garlic to the pot and cook , stirring to scrape up the brown bits from the bottom and sides of the pot , for about 8-10 minutes or until onions are golden . Reduce the heat to medium and add the vinegar , then the stock , ensuring you scrape up any remaining brown bits from the pot .