Skip to content

Commit

Permalink
Merge branch 'fix-private-to-private-contributions' of https://github…
Browse files Browse the repository at this point in the history
….com/finos/git-proxy into fix-private-to-private-contributions
  • Loading branch information
JamieSlome committed Nov 20, 2024
2 parents 2f679df + a5fb6eb commit 793194f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/proxy/processors/push-action/pullRemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Step = require('../../actions').Step;
const fs = require('fs');
const dir = './.remote';
const git = require('isomorphic-git');
const http = require('isomorphic-git/http/node');
const gitHttpClient = require('isomorphic-git/http/node');

const exec = async (req, action) => {
const step = new Step('pullRemote');
Expand Down Expand Up @@ -31,20 +31,17 @@ const exec = async (req, action) => {
await git
.clone({
fs,
http,
http: gitHttpClient,
url: action.url,
onAuth: () => {
return {
username: username,
password: password,
};
},
onAuth: () => ({

Check warning on line 36 in src/proxy/processors/push-action/pullRemote.js

View check run for this annotation

Codecov / codecov/patch

src/proxy/processors/push-action/pullRemote.js#L36

Added line #L36 was not covered by tests
username,
password,
}),
dir: `${action.proxyGitPath}/${action.repoName}`,
})
.then(() => {
console.log('Clone Success: ', action.url);
});

console.log('Clone Success: ', action.url);

step.log(`Completed ${cmd}`);
step.setContent(`Completed ${cmd}`);
} catch (e) {
Expand Down

0 comments on commit 793194f

Please sign in to comment.