We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02aa241 commit 9020699Copy full SHA for 9020699
1 file changed
src/extension.ts
@@ -37,16 +37,16 @@ function _validateFoundRepos(git: API) {
37
async function _handleRepos(git: API, sourceControl: any) {
38
// FIXME: Unfortunately this seems to only pick up the first repo and not find
39
// second, etc.
40
- const selectedRepository = git.repositories.find(repository => {
+ const selectedRepo = git.repositories.find(repository => {
41
const uri = sourceControl._rootUri;
42
if (!uri) {
43
console.warn("_rootUri not set");
44
}
45
return repository.rootUri.path === uri.path;
46
});
47
48
- if (selectedRepository) {
49
- await makeAndFillCommitMsg(selectedRepository);
+ if (selectedRepo) {
+ await makeAndFillCommitMsg(selectedRepo);
50
} else {
51
vscode.window.showErrorMessage("No repos found");
52
0 commit comments