Skip to content

Fix parsing of symbolic refs in Git::Lib#branches_all #640

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

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

jcouball
Copy link
Member

@jcouball jcouball commented Mar 3, 2023

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Ensure all commits include DCO sign-off.
  • Ensure that your contributions pass unit testing.
  • Ensure that your contributions contain documentation if applicable.

Description

Fixes #474

Git::Lib#all_branches (silently) failed to correctly parse git branch --all output for branches that are symbolic references (like ' remotes/origin/HEAD -> origin/master').

This PR correctly parses the output of git branch --all and add a test case for the case of branches that are symbolic references.

Signed-off-by: James Couball <jcouball@yahoo.com>
@jcouball jcouball force-pushed the fix_lib_branches_all branch from cb387fd to f861c26 Compare March 3, 2023 23:15
@jcouball jcouball changed the title Fix lib branches all Fix parsing of symbolic refs in Git::Lib#branches_all Mar 3, 2023
@jcouball jcouball merged commit 5c6833f into master Mar 3, 2023
@jcouball jcouball deleted the fix_lib_branches_all branch March 3, 2023 23:25
@jcouball jcouball mentioned this pull request Mar 4, 2023
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.

First remote branch "HEAD -> origin/master" is a special case and fails gcommit.sha
1 participant