From 75600e586926f545fbbe2c80321bd64194f9fd21 Mon Sep 17 00:00:00 2001 From: Edgard Lorraine Messias Date: Sat, 17 Nov 2018 07:58:01 -0200 Subject: [PATCH] fix: Fixed credentials for remote changes (Close #401) (#413) --- src/repository.ts | 10 ++++++---- src/svn.ts | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/repository.ts b/src/repository.ts index dcfbf14e..444e2af5 100644 --- a/src/repository.ts +++ b/src/repository.ts @@ -449,10 +449,12 @@ export class Repository { ); const statuses = - (await this.repository.getStatus({ - includeIgnored: true, - includeExternals: combineExternal, - checkRemoteChanges + (await this.retryRun(async () => { + return await this.repository.getStatus({ + includeIgnored: true, + includeExternals: combineExternal, + checkRemoteChanges + }); })) || []; const fileConfig = workspace.getConfiguration("files", Uri.file(this.root)); diff --git a/src/svn.ts b/src/svn.ts index d1d828fd..3b9d75f8 100644 --- a/src/svn.ts +++ b/src/svn.ts @@ -106,6 +106,9 @@ export class Svn { args.push("--password", options.password); } + // Force non interactive environment + args.push("--non-interactive"); + let encoding = options.encoding || "utf8"; delete options.encoding;