Skip to content

Commit 14ca1f1

Browse files
committed
Check repo location before checking for Git/Github
1 parent 5116816 commit 14ca1f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/commands/progress.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ def setup(ctx: click.Context) -> None:
3434
username = get_username(verbose)
3535
fork_name = f"{username}-gitmastery-progress"
3636

37-
ctx.invoke(check, phase="git")
38-
ctx.invoke(check, phase="github")
39-
4037
gitmastery_root_path, cds, gitmastery_config = require_gitmastery_root()
4138
if cds != 0:
4239
error(
4340
f"Use {click.style('cd ' + generate_cds_string(cds), bold=True, italic=True)} the root of the Git-Mastery exercises folder to download a new exercise."
4441
)
4542

43+
ctx.invoke(check, phase="git")
44+
ctx.invoke(check, phase="github")
45+
4646
info("Setting up progress tracker for you")
4747
info(
4848
f"Checking if you have fork of {click.style(PROGRESS_REPOSITORY_NAME, bold=True, italic=True)}"

0 commit comments

Comments
 (0)