Skip to content
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

Fix git branch switch #560

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Conversation

jkloetzke
Copy link
Member

Some minor bug fixes when switching between git branches...

When switching branches, Bob first checks if the new branch already
exists in the workspace. Unfortunately, the check did not consider the
subdirectory of the SCM so it might wrongly conclude that the branch
exists in case of nested repositories.
Make sure the local branch is rebased if requested, even when switching
between branches.
Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.94%. Comparing base (b28daf1) to head (7fc7919).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #560   +/-   ##
=======================================
  Coverage   88.94%   88.94%           
=======================================
  Files          46       46           
  Lines       14693    14693           
=======================================
+ Hits        13068    13069    +1     
+ Misses       1625     1624    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jkloetzke jkloetzke merged commit cda3539 into BobBuildTool:master Mar 27, 2024
11 checks passed
@jkloetzke jkloetzke deleted the fix-git-switch branch March 27, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant