You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Changes is ONLY possible if the app is version controlled
178
-
# in a github repo. Ensure that this is the case and, if not
179
-
# raise an exception
180
-
raise (Exception("Mode [changes] is not yet supported."))
181
-
try:
182
-
repo=git.Repo(config.repo_path)
183
-
exceptExceptionase:
184
-
raise (
185
-
Exception(
186
-
f"Error: detection mode [{config.mode}] REQUIRES that [{config.repo_path}] is a git repository, but it is not."
187
-
)
188
-
)
189
-
ifconfig.main_branch==config.test_branch:
190
-
raise (
191
-
Exception(
192
-
f"Error: test_branch [{config.test_branch}] is the same as the main_branch [{config.main_branch}]. When using mode [{config.mode}], these two branches MUST be different."
f"Error: detection mode [{config.mode}] REQUIRES that the test_branch [{config.test_branch}] be checked out at the beginning of the test, but it is not."
f"Error - test_branch is '{config.test_branch}', but the current active branch in '{config.repo_path}' is '{self.repo.active_branch}'. Checking out the branch you specified..."
f"Error, main branch '{self.config.main_branch}' and test branch '{self.config.test_branch}' do not share a common ancestor"
358
+
f"Error, main branch '{self.config.version_control_config.main_branch}' and test branch '{self.config.version_control_config.test_branch}' do not share a common ancestor"
361
359
)
362
360
)
363
361
base_commit=base_commits[0]
364
362
ifbase_commitisNone:
365
363
raise (
366
364
Exception(
367
-
f"Error, main branch '{self.config.main_branch}' and test branch '{self.config.test_branch}' common ancestor commit was 'None'"
365
+
f"Error, main branch '{self.config.version_control_config.main_branch}' and test branch '{self.config.version_control_config.test_branch}' common ancestor commit was 'None'"
0 commit comments