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: fix scm switch when going back to older revision #531
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #531 +/- ##
==========================================
+ Coverage 88.24% 88.31% +0.06%
==========================================
Files 46 46
Lines 14501 14494 -7
==========================================
+ Hits 12797 12800 +3
+ Misses 1704 1694 -10
☔ View full report in Codecov by Sentry. |
I think the goal should be to remove |
I think If there are 3 commits:
I think we need to distinguish between moving forward and backwards in history. Going backwards use |
Right, my bad. Obviously I was not reading the manpage carefully enough. 🙈 But But as already said, we have to make sure that the old commit is not lost. Maybe |
31ed740
to
787722d
Compare
If gitCommitOnBranch is active and commit and branch are configured in the recipe changing the commit back to a older one did not update the sources back to the configured version. Instead they remained on the current version. To fix this use `git reset --keep` instead of `git merge --ff-only` when updating, but make sure we do not lose any commits.
787722d
to
a08c442
Compare
Thanks for bearing with me. :) |
If gitCommitOnBranch is active and commit and branch are configured in the recipe changing the commit back to a older one did not update the sources back to the configured version. Instead the remained on the current version.