commit-in-tree: handle commits that don't exist in the repo at all Signed-off-by: Sasha Levin <sasha.levin@oracle.com>