Skip to content

Commit 77e174a

Browse files
authored
Skips the git commands when dev-no-save is specified (#1251)
1 parent 0db8f9c commit 77e174a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/scenario_runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ def checkout_repository(self):
283283
path = os.path.realpath(self._uri)
284284
self.__working_folder = self._repo_folder = path
285285

286+
if self._dev_no_save:
287+
return
288+
286289
self._branch = subprocess.check_output(['git', 'branch', '--show-current'], cwd=self._repo_folder, encoding='UTF-8').strip()
287290

288291
git_repo_root = subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], cwd=self._repo_folder, encoding='UTF-8').strip()

0 commit comments

Comments
 (0)