Skip to content

Commit 75600e5

Browse files
edgardmessiasJohnstonCode
authored andcommitted
fix: Fixed credentials for remote changes (Close #401) (#413)
1 parent d41c979 commit 75600e5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/repository.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,12 @@ export class Repository {
449449
);
450450

451451
const statuses =
452-
(await this.repository.getStatus({
453-
includeIgnored: true,
454-
includeExternals: combineExternal,
455-
checkRemoteChanges
452+
(await this.retryRun(async () => {
453+
return await this.repository.getStatus({
454+
includeIgnored: true,
455+
includeExternals: combineExternal,
456+
checkRemoteChanges
457+
});
456458
})) || [];
457459

458460
const fileConfig = workspace.getConfiguration("files", Uri.file(this.root));

src/svn.ts

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ export class Svn {
106106
args.push("--password", options.password);
107107
}
108108

109+
// Force non interactive environment
110+
args.push("--non-interactive");
111+
109112
let encoding = options.encoding || "utf8";
110113
delete options.encoding;
111114

0 commit comments

Comments
 (0)