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

Feat checkout detched #68

Merged
merged 2 commits into from
May 2, 2024
Merged

Feat checkout detched #68

merged 2 commits into from
May 2, 2024

Conversation

chengcyber
Copy link
Member

@chengcyber chengcyber commented Apr 30, 2024

Basic Checks

Have you run rush change for this change?

  • Yes
  • No

If No, please run rush change before, this is necessary.

If adding a new feature, the PR's description includes:

  • Reason for adding this feature
  • How to use
  • A basic example

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Summary

Fix error when running "sparo checkout" in a detached HEAD state

Detail

sparo checkout <commit_hash> can checkout to a detached HEAD state. Running "sparo checkout" again throws error which complains about "Failed to get branch name". This PR fixes this issue to allow "checkout" command in this case.

How to test it

@chengcyber chengcyber enabled auto-merge May 2, 2024 18:01
@chengcyber chengcyber disabled auto-merge May 2, 2024 18:01
@chengcyber chengcyber merged commit 1647665 into main May 2, 2024
3 checks passed
@chengcyber chengcyber deleted the feat-checkout-detched branch May 2, 2024 18:02
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