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

Fixed checking out non-existent branch #557

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Fixed checking out non-existent branch #557

merged 5 commits into from
Oct 22, 2024

Conversation

isc-etamarch
Copy link
Collaborator

@isc-etamarch isc-etamarch commented Oct 21, 2024

Fixes #549, #539

@isc-tleavitt Right now this throws an error (so that user is aware that checkout failed). Is there a better way to show an alert on the management portal / vscode / studio? (This happens on "AfterUserAction" so we have no access to the "Target" functionality of %Studio.SourceControl.Base.

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 25.06%. Comparing base (c62aac2) to head (aa661ce).
Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
cls/SourceControl/Git/Utils.cls 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #557      +/-   ##
==========================================
- Coverage   25.16%   25.06%   -0.10%     
==========================================
  Files          18       18              
  Lines        2647     2657      +10     
==========================================
  Hits          666      666              
- Misses       1981     1991      +10     

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

cls/SourceControl/Git/Utils.cls Show resolved Hide resolved
cls/SourceControl/Git/Utils.cls Outdated Show resolved Hide resolved
Should only fail when the error stream contains an error message
@isc-etamarch
Copy link
Collaborator Author

isc-etamarch commented Oct 22, 2024

I linked #539 since it was related and a quick addition to the current change. Now behavior is that checking out remote or local branches succeed unless they don't exist or you have uncommitted changes that will be deleted. In both cases the errors are fairly descriptive.

@isc-tleavitt isc-tleavitt merged commit ead95c8 into main Oct 22, 2024
2 checks passed
@isc-tleavitt isc-tleavitt deleted the issue-549 branch October 22, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants