lil fix
This commit is contained in:
parent
5bdf5cd5ee
commit
473bfe17b7
1 changed files with 8 additions and 8 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue