File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,16 +30,15 @@ function _validateFoundRepos(git: API) {
3030 * Run autofill against one of multiples in the workspace or when using GitLens on a single repo.
3131 */
3232async function _handleRepos ( git : API , sourceControl : vscode . SourceControl ) {
33- // FIXME: Unfortunately this seems to only pick up the first repo and not find
34- // second, etc. If you repository through to makeAndFillCommitMsg, getChanges
35- // and diffIndex etc. and replace "getWorkspaceFolder" usage then that will work.
3633 const selectedRepo = git . repositories . find ( repository => {
3734 const uri = sourceControl . rootUri ;
3835 if ( ! uri ) {
3936 console . warn ( "rootUri not set for current repo" ) ;
4037 return false ;
4138 }
42- return repository . rootUri . path === uri . path ;
39+ const repoPath = repository . rootUri . path ;
40+
41+ return repoPath === uri . path ;
4342 } ) ;
4443
4544 if ( selectedRepo ) {
You can’t perform that action at this time.
0 commit comments