Skip to content

Commit 0a26c66

Browse files
authored
[hp-fetch-merge] Fix mismatch in download and manual setup (#177)
# Exercise Review ## Exercise Discussion Fix #176 ## 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 bedbb71 commit 0a26c66

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

hands_on/fetch_merge.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from exercise_utils.cli import run_command
12
import os
23

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

56
__requires_git__ = True
67
__requires_github__ = False
@@ -11,7 +12,4 @@ def download(verbose: bool):
1112
"https://github.com/git-mastery/samplerepo-finances.git", verbose
1213
)
1314
os.chdir("samplerepo-finances")
14-
remove_remote("origin", verbose)
15-
add_remote(
16-
"origin", "https://github.com/git-mastery/samplerepo-finances-2", verbose
17-
)
15+
run_command(["git", "remote", "set-url", "origin", "https://github.com/git-mastery/samplerepo-finances-2.git"], verbose)

0 commit comments

Comments
 (0)