Implement hp-remote-branch-pull#230
Conversation
|
Hi @desmondwong1215, thank you for your contribution! 🎉 This PR comes from your fork Before you request for a review, please ensure that you have tested your changes locally! Important The previously recommended way of using Please read the following instructions for the latest instructions. PrerequisitesEnsure that you have the Testing stepsIf you already have a local Git-Mastery root to test, you can skip the following step. Create a Git-Mastery root locally: gitmastery setupNavigate into the Git-Mastery root (defaults to cd gitmastery-exercises/Edit the {
# other fields...
"exercises_source": {
"username": "desmondwong1215",
"repository": "exercises",
"branch": "hp-remote-branch-pull",
}
}Then, you can use the gitmastery download <your new change>
gitmastery verifyChecklist
Important To any reviewers of this pull request, please use the same instructions above to test the changes. |
jovnc
left a comment
There was a problem hiding this comment.
Thanks for working on this! Some changes are needed as I think there might be some issues with the issue itself.
| ], | ||
| verbose, | ||
| ) | ||
| def fork_repo( |
There was a problem hiding this comment.
I just merged a PR from @jiaxinnns that uses the same util function, you can rebase your PR against the main branch and use that instead.
|
|
||
|
|
||
| def push(remote: str, branch: str, verbose: bool) -> None: | ||
| def push(remote: str, branch: str, verbose: bool, set_upstream: bool = False) -> None: |
There was a problem hiding this comment.
No need for this change, refer to below.
| add(["employees.txt"], verbose) | ||
| commit("Add Pam to employees.txt", verbose) | ||
|
|
||
| push("origin", "hiring", verbose, True) |
There was a problem hiding this comment.
Yup that's right, we should use git push origin hiring instead so it won't set the upstream remote for us. This way, we can get the expected git branch -a output.
…hp-remote-branch-pull


Exercise Review
Exercise Discussion
#187
Checklist
Git-Masteryorganization, have you created a request for it?repo-smithto validate the exercise grading scheme?git-autograder?app?