When keep_gitdata is false, the gitdir is changed to "$archivedir/$project-git/gitrep", so this is the right check.