Skip to content

Commit 65e1801

Browse files
committed
Fix push issue.
Indeed, before this patch, I forgot to handle the exit of the push() method.
1 parent d2f7d0b commit 65e1801

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

PyFunceble/abstracts/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Package:
7171
Sets the package name.
7272
"""
7373

74-
VERSION = "2.43.0.dev (Green Galago: Skitterbug)"
74+
VERSION = "2.44.0.dev (Green Galago: Skitterbug)"
7575
"""
7676
Sets the package version.
7777
"""

PyFunceble/engine/auto_save.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,11 @@ def bypass(self):
308308

309309
self.end_commit()
310310

311-
def push(self):
311+
def push(self, exit_it=True):
312312
"""
313313
Push.
314+
315+
:param bool exit_it: Allow us to directly exit after pushing.
314316
"""
315317

316318
if self.authorized:
@@ -320,7 +322,8 @@ def push(self):
320322
PyFunceble.helpers.Command(command).execute()
321323
PyFunceble.LOGGER.info(f"Executed: {command}")
322324

323-
sys.exit(0)
325+
if exit_it:
326+
sys.exit(0)
324327

325328
def end_commit(self):
326329
"""
@@ -349,7 +352,7 @@ def end_commit(self):
349352
PyFunceble.LOGGER.info(f"Executing: {command}")
350353

351354
PyFunceble.helpers.Command(command).run_to_stdout()
352-
self.push()
355+
self.push(exit_it=False)
353356

354357
# We now merge to the destination branch.
355358
commands = [
@@ -365,6 +368,7 @@ def end_commit(self):
365368
]
366369

367370
self.exec_commands(commands)
371+
sys.exit(0)
368372

369373
def not_end_commit(self):
370374
"""

version.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
current_version: '2.43.0.dev (Green Galago: Skitterbug)'
1+
current_version: '2.44.0.dev (Green Galago: Skitterbug)'
22
deprecated:
33
- 0.0.0
44
- 0.0.1
@@ -172,6 +172,7 @@ deprecated:
172172
- 2.40.0
173173
- 2.41.0
174174
- 2.42.0
175+
- 2.43.0
175176
force_update:
176177
minimal_version:
177178
- 0.0.0

0 commit comments

Comments
 (0)