Skip to content

Commit 8213baf

Browse files
committed
extract first repository.status call
related to microsoft#77787 (comment)
1 parent 4427149 commit 8213baf

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎extensions/git/src/model.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export class Model {
251251
const repository = new Repository(this.git.open(repositoryRoot, dotGit), this.globalState, this.outputChannel);
252252

253253
this.open(repository);
254+
await repository.status();
254255
} catch (err) {
255256
if (err.gitErrorCode === GitErrorCodes.NotAGitRepository) {
256257
return;

‎extensions/git/src/repository.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ export class Repository implements Disposable {
713713
this.disposables.push(progressManager);
714714

715715
this.updateCommitTemplate();
716-
this.status();
717716
}
718717

719718
validateInput(text: string, position: number): SourceControlInputBoxValidation | undefined {

0 commit comments

Comments
 (0)