enable allow_missing_branches (#73)

This commit is contained in:
Brendan Kellam 2024-11-14 22:35:07 -08:00 committed by GitHub
parent e6d90398e4
commit bea86a64c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,7 @@ export interface GitHubConfig {
*/ */
archived?: boolean; 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[]; repos?: string[];
}; };
@ -115,7 +115,7 @@ export interface GitLabConfig {
*/ */
archived?: boolean; 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[]; projects?: string[];
}; };
@ -163,7 +163,7 @@ export interface GiteaConfig {
*/ */
archived?: boolean; 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[]; repos?: string[];
}; };

View file

@ -10,7 +10,7 @@ export const indexGitRepository = async (repo: GitRepository, ctx: AppContext) =
...repo.tags ?? [], ...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) => { return new Promise<{ stdout: string, stderr: string }>((resolve, reject) => {
exec(command, (error, stdout, stderr) => { exec(command, (error, stdout, stderr) => {