This commit is contained in:
Benoît Vézina 2024-04-30 14:45:11 -04:00
parent 5bdf5cd5ee
commit 473bfe17b7

View file

@ -13,14 +13,14 @@ class GitReposWizard(models.TransientModel):
# code for pulling branch list from git repo using `self.url`
# here the git branch data should be transformed into {'name': 'branch_name'} form
branches_datum = [{'name': 'branch_name'}]
# logic for checking if repo can be reach and have branches
if not branches_datum:
raise exceptions.ValidationError('The Repository URL is not accurate or The repository has no branches.')
# create git.branch records or link with existing ones
for branch_data in branches_datum:
# branches_datum = [{'name': 'branch_name'}]
#
# # logic for checking if repo can be reach and have branches
# if not branches_datum:
# raise exceptions.ValidationError('The Repository URL is not accurate or The repository has no branches.')
#
# # create git.branch records or link with existing ones
# for branch_data in branches_datum:
# def action_confirm(self):