-
Notifications
You must be signed in to change notification settings - Fork 25
Implement hands on hp-pull-remote #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Implement hands on hp-pull-remote #100
Conversation
woojiahao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lavanyagarg112 You might want to reference #99 too to compare and see if there's anything that could be the same since the setup is equivalent
| from exercise_utils.git import clone | ||
|
|
||
| __requires_git__ = True | ||
| __requires_github__ = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| __requires_github__ = True | |
| __requires_github__ = False |
This can be set to False if you do not use gh as part of the script
| os.makedirs("samplerepo-finances") | ||
| clone("https://github.com/git-mastery/samplerepo-finances.git", verbose) | ||
| os.chdir("samplerepo-finances") | ||
| run_command(["git", "remote", "set-url", "origin", "https://github.com/git-mastery/samplerepo-finances-2.git"], verbose) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| run_command(["git", "remote", "set-url", "origin", "https://github.com/git-mastery/samplerepo-finances-2.git"], verbose) | |
| run_command(["git", "remote", "set-url", "origin", "https://github.com/git-mastery/samplerepo-finances-2.git"], verbose) | |
| os.makedirs("samplerepo-finances") | ||
| clone("https://github.com/git-mastery/samplerepo-finances.git", verbose) | ||
| os.chdir("samplerepo-finances") | ||
| run_command(["git", "remote", "set-url", "origin", "https://github.com/git-mastery/samplerepo-finances-2.git"], verbose) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also curious what the rationale behind abstracting clone to a utility function but not set-url?
Exercise Review
Exercise Discussion
#87
Checklist
Git-Masteryorganization, have you created a request for it?repo-smithto validate the exercise grading scheme?test-download.sh?git-autograder?app?