only get revision when it is at the root of a git repo