| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
WalkthroughDetects remote default branch during fetch, optionally updates local HEAD to that branch, exposes helpers to read remote/local default branch, uses local default branch for initial revision selection during indexing, and makes branch-display visibility in the UI query-driven. Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested reviewers
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)packages/backend/src/git.ts (1)147-150: Guard cleanup to avoid masking fetch errors.
In the finally block (line 150), git config --unset fails with exit code 5 when the key is missing or the value pattern doesn't match, which would replace the original error caught in the except block. Wrap the cleanup in its own try-catch to prevent error masking.
Suggested fix} finally { if (authHeader) { - await git.raw(["config", "--unset", "http.extraHeader", authHeader]); + try { + await git.raw(["config", "--unset", "http.extraHeader", authHeader]); + } catch (error: unknown) { + logger.debug( + `Failed to unset http.extraHeader for ${path}: ${ + error instanceof Error ? error.message : error + }` + ); + } } }
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR fixes the issue where when the default branch changes, new commits would not be re-indexed. The issue was that the HEAD symbolic ref was not getting updated to the new default branch. This PR adds that.
Additionally, this PR makes the default branch appear in most places instead of HEAD, where applicable.
Fixes #40
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.