Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

@rsdy
Copy link
Contributor

@rsdy rsdy commented Jul 27, 2023

This resulted in branch filters messing up queries and making it impossible to get results from purely local repos.

In this patch, the detection of whether or not it's a Git repository is changed from looking for a Git remote (which may not exist), to simply checking if it's a Git repository at all by signaling if we have detected a last commit timestamp.

Additionally, add explicit support local repositories in the Git file iterator so we only force remote branches when it's a remote repository.

@rsdy rsdy force-pushed the rsdy/blo-1334-local-repositories-without-remote-branches-dont-sync branch from 7932920 to b29da63 Compare July 27, 2023 16:11
@rsdy rsdy requested review from ggordonhall and oppiliappan and removed request for ggordonhall July 27, 2023 16:11
@rsdy rsdy marked this pull request as ready for review July 27, 2023 16:15
rsdy added 2 commits July 28, 2023 09:38
This resulted in branch filters messing up queries and making it
impossible to get results from purely local repos
@rsdy rsdy force-pushed the rsdy/blo-1334-local-repositories-without-remote-branches-dont-sync branch from b29da63 to 09ef561 Compare July 28, 2023 07:48
Copy link
Contributor

@oppiliappan oppiliappan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, fixes bug in indexing repos without remotes.

@rsdy rsdy merged commit 5a651d6 into main Jul 28, 2023
@rsdy rsdy deleted the rsdy/blo-1334-local-repositories-without-remote-branches-dont-sync branch July 28, 2023 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants