Use get-ref-list to get the commit parents