From bea86a64c91fb9551e6548e790f4aec358bb487b Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Thu, 14 Nov 2024 22:35:07 -0800 Subject: [PATCH] enable allow_missing_branches (#73) --- packages/backend/src/schemas/v2.ts | 6 +++--- packages/backend/src/zoekt.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/schemas/v2.ts b/packages/backend/src/schemas/v2.ts index 5b6d2d05..644f564e 100644 --- a/packages/backend/src/schemas/v2.ts +++ b/packages/backend/src/schemas/v2.ts @@ -54,7 +54,7 @@ export interface GitHubConfig { */ archived?: boolean; /** - * List of individual repositories to exclude from syncing. Expected to be formatted as '{orgName}/{repoName}' or '{userName}/{repoName}'. + * List of individual repositories to exclude from syncing. Glob patterns are supported. */ repos?: string[]; }; @@ -115,7 +115,7 @@ export interface GitLabConfig { */ archived?: boolean; /** - * List of individual projects to exclude from syncing. The project's namespace must be specified. See: https://docs.gitlab.com/ee/user/namespace/ + * List of projects to exclude from syncing. Glob patterns are supported. The project's namespace must be specified, see: https://docs.gitlab.com/ee/user/namespace/ */ projects?: string[]; }; @@ -163,7 +163,7 @@ export interface GiteaConfig { */ archived?: boolean; /** - * List of individual repositories to exclude from syncing. Expected to be formatted as '{orgName}/{repoName}' or '{userName}/{repoName}'. + * List of individual repositories to exclude from syncing. Glob patterns are supported. */ repos?: string[]; }; diff --git a/packages/backend/src/zoekt.ts b/packages/backend/src/zoekt.ts index d20a940a..04947b16 100644 --- a/packages/backend/src/zoekt.ts +++ b/packages/backend/src/zoekt.ts @@ -10,7 +10,7 @@ export const indexGitRepository = async (repo: GitRepository, ctx: AppContext) = ...repo.tags ?? [], ]; - const command = `zoekt-git-index -index ${ctx.indexPath} -branches ${revisions.join(',')} ${repo.path}`; + const command = `zoekt-git-index -allow_missing_branches -index ${ctx.indexPath} -branches ${revisions.join(',')} ${repo.path}`; return new Promise<{ stdout: string, stderr: string }>((resolve, reject) => { exec(command, (error, stdout, stderr) => {