Skip to content

Commit 4926424

Browse files
authored
[hp-pull-remote] Fix origin remote URL configuration (#184)
# Exercise Review ## Exercise Discussion Fix #183 ## Checklist - [ ] If you require a new remote repository on the `Git-Mastery` organization, have you [created a request](https://github.com/git-mastery/exercises/issues/new?template=request_exercise_repository.md) for it? - [ ] Have you written unit tests using [`repo-smith`](https://github.com/git-mastery/repo-smith) to validate the exercise grading scheme? - [X] Have you tested the download script using `test-download.sh`? - [X] Have you verified that this exercise does not already exist or is not currently in review? - [ ] Did you introduce a new grading mechanism that should belong to [`git-autograder`](https://github.com/git-mastery/git-autograder)? - [ ] Did you introduce a new dependency that should belong to [`app`](https://github.com/git-mastery/app)?
1 parent d0a202a commit 4926424

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

hands_on/pull_remote.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

3-
from exercise_utils.git import add_remote, clone_repo_with_git
3+
from exercise_utils.git import clone_repo_with_git
4+
from exercise_utils.cli import run_command
45

56
__requires_git__ = True
67
__requires_github__ = False
@@ -12,6 +13,13 @@ def download(verbose: bool):
1213
"https://github.com/git-mastery/samplerepo-finances.git", verbose
1314
)
1415
os.chdir("samplerepo-finances")
15-
add_remote(
16-
"origin", "https://github.com/git-mastery/samplerepo-finances-2.git", verbose
16+
run_command(
17+
[
18+
"git",
19+
"remote",
20+
"set-url",
21+
"origin",
22+
"https://github.com/git-mastery/samplerepo-finances-2.git",
23+
],
24+
verbose,
1725
)

0 commit comments

Comments
 (0)