-
Notifications
You must be signed in to change notification settings - Fork 13
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
git: adding basic function to checkout a branch #248
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for coffee-docs canceled.
|
@@ -1,8 +1,10 @@ | |||
use log::debug; | |||
use tokio::process::Command; |
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.
wrong import place
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.
Thanks
Here are some notes as well:
- We need to update integration tests in
tests/src/coffee_integration_tests.rs
to passbranch
parameter tocoffee_install
- coffee plugin needs to pass the
branch
value as well. Seecoffee_plugin/src/plugin/plugin_mod.rs
- We can also add a comment in the docs to mention the new parameter
if let Some(branch) = branch { | ||
// FIXME: Where we store the date? how we manage it? | ||
let (commit, _) = | ||
git_checkout(&plugin.root_path, &branch, verbose).await?; |
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.
We switch the whole repository to the required branch but we don't switch back to the original branch of the repository after installing the plugin
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.
nice point
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
d1159da
to
4d7920d
Compare
Ok, this needs to go in before the first release, to fix the CI. We can add the remote with a specific commit when summary was sane |
Is this possible with git? What do you think? |
Yeah make sense to do it |
Alternative version of #242
Fixes #205