Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
contributors.debian.org
Commits
da0d751a
Verified
Commit
da0d751a
authored
Aug 01, 2022
by
Mattia Rizzolo
Browse files
deploy: also include the instantiation of Deployer within the try/execpt
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
e9ee5dca
Pipeline
#406492
failed with stage
in 2 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deploy/management/commands/deploy.py
View file @
da0d751a
...
@@ -109,8 +109,8 @@ class Command(BaseCommand):
...
@@ -109,8 +109,8 @@ class Command(BaseCommand):
deploy_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]))
deploy_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]))
os
.
chdir
(
deploy_dir
)
os
.
chdir
(
deploy_dir
)
deployer
=
Deployer
(
dry_run
=
options
[
"dry_run"
])
try
:
try
:
deployer
=
Deployer
(
dry_run
=
options
[
"dry_run"
])
deployer
.
select_branch
()
deployer
.
select_branch
()
email_handler
.
fromaddr
=
deployer
.
ref
.
commit
.
committer
.
email
email_handler
.
fromaddr
=
deployer
.
ref
.
commit
.
committer
.
email
log
.
debug
(
"Email from: %s"
,
email_handler
.
fromaddr
)
log
.
debug
(
"Email from: %s"
,
email_handler
.
fromaddr
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment