Проверка .git происходит во всех репозиториях
master 3.7.2.70
root 1 year ago
parent a86bd7f1ff
commit a5b4e5fcc7

@ -687,10 +687,11 @@ class VariableClUpdateOtherGitExists(Variable):
repos_path = 'cl_update_repos_storage'
def get(self):
rep = f"{self.Get(self.repos_path)}/container"
if os.path.exists(os.path.join(rep, '.git')):
return True
return False
repos = self.Get(self.repos_path)
for repo in listDirectory(repos):
if not os.path.exists(os.path.join(repos, os.path.join(repo, '.git'))):
return False
return True
Loading…
Cancel
Save