models: handle the git init case in get_workdir_state()