File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
src/proxy/processors/push-action Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const Step = require('../../actions').Step;
22const fs = require ( 'fs' ) ;
33const dir = './.remote' ;
44const git = require ( 'isomorphic-git' ) ;
5- const http = require ( 'isomorphic-git/http/node' ) ;
5+ const gitHttpClient = require ( 'isomorphic-git/http/node' ) ;
66
77const exec = async ( req , action ) => {
88 const step = new Step ( 'pullRemote' ) ;
@@ -31,20 +31,17 @@ const exec = async (req, action) => {
3131 await git
3232 . clone ( {
3333 fs,
34- http,
34+ http : gitHttpClient ,
3535 url : action . url ,
36- onAuth : ( ) => {
37- return {
38- username : username ,
39- password : password ,
40- } ;
41- } ,
36+ onAuth : ( ) => ( {
37+ username,
38+ password,
39+ } ) ,
4240 dir : `${ action . proxyGitPath } /${ action . repoName } ` ,
43- } )
44- . then ( ( ) => {
45- console . log ( 'Clone Success: ' , action . url ) ;
4641 } ) ;
4742
43+ console . log ( 'Clone Success: ' , action . url ) ;
44+
4845 step . log ( `Completed ${ cmd } ` ) ;
4946 step . setContent ( `Completed ${ cmd } ` ) ;
5047 } catch ( e ) {
You can’t perform that action at this time.
0 commit comments