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
nm.debian.org
Commits
d23c2b7f
Verified
Commit
d23c2b7f
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
cd70caf6
Pipeline
#406489
failed with stage
in 4 minutes and 54 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
deploy/management/commands/deploy.py
View file @
d23c2b7f
...
@@ -103,8 +103,8 @@ class Command(BaseCommand):
...
@@ -103,8 +103,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