Skip to content

Commit

Permalink
fix: Fixed credentials for remote changes (Close #401) (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias authored and JohnstonCode committed Nov 17, 2018
1 parent d41c979 commit 75600e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
3 changes: 3 additions & 0 deletions src/svn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 75600e5

Please sign in to comment.