Skip to content

Commit d71fb13

Browse files
committed
Create new repo_type to handle undo-init exercise
1 parent c04a6c5 commit d71fb13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/git_autograder/exercise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
# is the purpose of handling the exception where we can display an error on
6767
# their end.
6868
self.repo: GitAutograderRepoBase
69-
if self.config.exercise_repo.repo_type == "ignore":
69+
if self.config.exercise_repo.repo_type == "ignore" or self.config.exercise_repo.repo_type == "local-ignore":
7070
self.repo = NullGitAutograderRepo()
7171
else:
7272
self.repo = GitAutograderRepo(

src/git_autograder/exercise_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class ExerciseConfig:
99
@dataclass
1010
class ExerciseRepoConfig:
11-
repo_type: Literal["local", "remote", "ignore"]
11+
repo_type: Literal["local", "remote", "ignore", "local-ignore"]
1212
repo_name: str
1313
repo_title: Optional[str]
1414
create_fork: Optional[bool]

0 commit comments

Comments
 (0)