Skip to content

Fix getRemoteBranches behavior with newer versions of git - #305

Closed
MichaelSims wants to merge 1 commit into
mainfrom
jaspr/main/I1011dd0b
Closed

MichaelSims wants to merge 1 commit into
mainfrom
jaspr/main/I1011dd0b

Conversation

@MichaelSims

@MichaelSims MichaelSims commented Dec 25, 2025 •

Copy link
Copy Markdown
Owner

Fix getRemoteBranches behavior with newer versions of git

At some point, the git CLI did not return "$remoteName/HEAD" when
executing "git branch -r" and now it does for some reason. This breaks
some tests, so let's filter it out in both clients and add tests to
ensure the filtering works.

Also, fix a couple of getRemoteBranches tests that were passing by
coincidence due to not specifying the correct remote name and therefore
getting empty lists.

Also, fix an issue where JGit is simplying author email to just
the TLD. I don't know what that's about but it's not a big dea.

Also, update pull_requests.yml to run-on ubuntu-latest

Stack:

⚠️ Part of a stack created by jaspr. Do not merge manually using the UI - doing so may have unexpected results.

@github-actions

github-actions Bot commented Dec 25, 2025 •

Copy link
Copy Markdown

Test Results

157 tests   157 ✅  44s ⏱️
  8 suites    0 💤
  8 files      0 ❌

Results for commit a7c3dc2.

♻️ This comment has been updated with latest results.

@MichaelSims
MichaelSims changed the base branch from jaspr/main/Ib84743a2 to main December 25, 2025 23:19
@MichaelSims
MichaelSims changed the base branch from main to jaspr/main/Iac3f974b December 25, 2025 23:19
At some point, the git CLI did not return "$remoteName/HEAD" when
executing "git branch -r" and now it does for some reason. This breaks
some tests, so let's filter it out in both clients and add tests to
ensure the filtering works.

Also, fix a couple of getRemoteBranches tests that were passing by
coincidence due to not specifying the correct remote name and therefore
getting empty lists.

Also, fix an issue where JGit is simplying author email to just
the TLD. I don't know what that's about but it's not a big dea.

Also, update pull_requests.yml to run-on `ubuntu-latest`

commit-id: I1011dd0b
@MichaelSims
MichaelSims changed the base branch from jaspr/main/Iac3f974b to main December 25, 2025 23:57
@MichaelSims
MichaelSims deleted the jaspr/main/I1011dd0b branch December 26, 2025 14:48
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.

2 participants