[IMP] retrieve last commit of the branch