Skip to content

Commit 2077743

Browse files
committed
Change to root of exercise regardless of requires_repo
1 parent 90938b9 commit 2077743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/commands/verify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def verify(ctx: click.Context) -> None:
149149
requires_repo = gitmastery_exercise_config.get("requires_repo", True)
150150
output: Optional[GitAutograderOutput]
151151
try:
152+
os.chdir(gitmastery_exercise_root_path)
152153
if requires_repo:
153-
os.chdir(gitmastery_exercise_root_path)
154154
current_repo = GitAutograderRepo(exercise_name, ".")
155155
output = execute_py_file_function_from_url(
156156
formatted_exercise_name,

0 commit comments

Comments
 (0)