Skip to content

Commit a13757c

Browse files
authored
Git - Additional tracing for opening git submodules (microsoft#167036)
Additional tracing for opening git submodules
1 parent df2e764 commit a13757c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extensions/git/src/model.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ export class Model implements IRemoteSourcePublisherRegistry, IPostCommitCommand
438438

439439
const checkForSubmodules = () => {
440440
if (!shouldDetectSubmodules) {
441+
this.logger.trace('Automatic detection of git submodules is not enabled.');
441442
return;
442443
}
443444

@@ -449,7 +450,10 @@ export class Model implements IRemoteSourcePublisherRegistry, IPostCommitCommand
449450
repository.submodules
450451
.slice(0, submodulesLimit)
451452
.map(r => path.join(repository.root, r.path))
452-
.forEach(p => this.eventuallyScanPossibleGitRepository(p));
453+
.forEach(p => {
454+
this.logger.trace(`Opening submodule: '${p}'`);
455+
this.eventuallyScanPossibleGitRepository(p);
456+
});
453457
};
454458

455459
const updateMergeChanges = () => {

0 commit comments

Comments
 (0)