Skip to content

Commit a93cf9e

Browse files
authored
Handle new repo_type local-ignore (#27)
1 parent de54343 commit a93cf9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/commands/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def setup_exercise_folder(
198198
with open(".gitmastery-exercise.json", "w") as gitmastery_exercise_file:
199199
gitmastery_exercise_file.write(config.to_json())
200200

201-
if config.exercise_repo.repo_type == "local":
201+
if config.exercise_repo.repo_type == "local" or config.exercise_repo.repo_type == "local-ignore":
202202
info("Creating custom exercise folder")
203203
os.makedirs(config.exercise_repo.repo_name, exist_ok=True)
204204
elif config.exercise_repo.repo_type == "remote":

app/configs/exercise_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class ExerciseConfig:
1313
@dataclass
1414
class ExerciseRepoConfig:
15-
repo_type: Literal["local", "remote", "ignore"]
15+
repo_type: Literal["local", "remote", "ignore", "local-ignore"]
1616
repo_name: str
1717
repo_title: Optional[str]
1818
create_fork: Optional[bool]

0 commit comments

Comments
 (0)