Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/GitAskPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (!request.property) {
const client = net.createConnection(
{
port: NODEGIT_LFS_ASKPASS_PORT,
host: 'localhost'
host: '127.0.0.1'
},
() => {
client.pipe(process.stdout);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ensureAuthServer = () => new Promise((resolve, reject) => {

tcpServer = net.createServer(socketListener);
tcpServer.on('error', reject);
tcpServer.listen({ port: 0, host: 'localhost' }, resolve);
tcpServer.listen({ port: 0, host: '127.0.0.1' }, resolve);
});

export const getAuthServerPort = () => (
Expand Down
3 changes: 2 additions & 1 deletion src/utils/spawnHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const parseUrlFromErrorMessage = (errorMessage) => {
let url = null;
const matches = regex.CREDENTIALS_NOT_FOUND.exec(errorMessage);
if (matches && matches.length > 1) {
([url] = matches);
([, url] = matches);
}
return url;
};
Expand Down Expand Up @@ -93,6 +93,7 @@ const spawn = async (command, stdin, opts = {}, credentialsCallback, repoPath =
opts,
{
env: {
ELECTRON_RUN_AS_NODE: 1,
GIT_TERMINAL_PROMPT: 0,
GIT_ASKPASS: getGitAskPassPath(),
NODEGIT_LFS_ASKPASS_STATE: credRequestId,
Expand Down