-
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
coffee: fix the upgrade commands #228
Conversation
✅ Deploy Preview for coffee-docs canceled.
|
521be72
to
13df654
Compare
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.
Great job!
Left some comments.
Let's also remove this function because coffee upgrade
should upgrade a whole repository not a single plugin as per our discussion
dc1426f
to
7cf909e
Compare
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.
Looks good to me
verbose
flag works as expected too
This commit introduce a basic refactoring that remove the libgit2 solution to upgrade a repository and use the pure git command. Currently we are using git in other places, and it should be fine to use it there. To keep faith in our contribution guide line, we should implement the simple things that works, without implementing a complex things that did not work. At some point when coffee is stable we can thing to remove the git command usage and use a pure git library. Changelog-Fixed: git: remove the libgit2 upgrade commands and use a raw git command Signed-off-by: Vincenzo Palazzo <[email protected]>
This semplify the code to report the upgrade status by storing the commit information inside the enum itself. Changelog-Added: lib: store the commit information inside the enum Signed-off-by: Vincenzo Palazzo <[email protected]>
Signed-off-by: Vincenzo Palazzo <[email protected]>
This commit pass down the verbose running information down to the upgrade method of the repository. Changelog-Added: lib: accept the verbose flag during upgrading Signed-off-by: Vincenzo Palazzo <[email protected]>
d276cf5
to
fc0fc54
Compare
Signed-off-by: Vincenzo Palazzo <[email protected]>
I was on a plane and I found the time to write a PoC for better upgrade commands, this also introduced a simplification of the code
Fixes #223
Fixes #214