maybe there is an easy way to speedup things and get branch+commit with only 1 exec call?