WIP: add git ref support