Add fix for arbitrary tree lookup for commits