Skip to content

Commit 1c84c33

Browse files
[hp-pull-remote] Implement hands on hp-pull-remote (#100)
# Exercise Review ## Exercise Discussion #87 ## 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 9d34ab9 commit 1c84c33

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

hands_on/pull_remote.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
3+
from exercise_utils.cli import run_command
4+
from exercise_utils.git import add_remote, clone_repo_with_git
5+
6+
__requires_git__ = True
7+
__requires_github__ = False
8+
9+
10+
def download(verbose: bool):
11+
os.makedirs("samplerepo-finances")
12+
clone_repo_with_git("https://github.com/git-mastery/samplerepo-finances.git", verbose)
13+
os.chdir("samplerepo-finances")
14+
add_remote("origin", "https://github.com/git-mastery/samplerepo-finances-2.git", verbose)

0 commit comments

Comments
 (0)