File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/extension/chatSessions/vscode Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,13 @@ export async function getRepoId(gitService: IGitService): Promise<GithubRepoId[]
7676
7777 // support multi-root
7878 if ( gitService . repositories . length > 1 ) {
79- return gitService . repositories . map ( repo => {
80- if ( repo . remoteFetchUrls && repo . remoteFetchUrls [ 0 ] ) {
81- return getGithubRepoIdFromFetchUrl ( repo . remoteFetchUrls [ 0 ] ) ;
82- }
83- } ) . filter ( ( id ) : id is GithubRepoId => ! ! id ) ;
79+ return gitService . repositories
80+ . filter ( repo => repo . kind !== 'worktree' )
81+ . map ( repo => {
82+ if ( repo . remoteFetchUrls && repo . remoteFetchUrls [ 0 ] ) {
83+ return getGithubRepoIdFromFetchUrl ( repo . remoteFetchUrls [ 0 ] ) ;
84+ }
85+ } ) . filter ( ( id ) : id is GithubRepoId => ! ! id ) ;
8486 }
8587
8688 const repo = gitService . activeRepository . get ( ) ;
You can’t perform that action at this time.
0 commit comments