@@ -19,7 +19,7 @@ const misc_1 = require("./misc");
1919exports . deploy = ( branch , context ) => __awaiter ( this , void 0 , void 0 , function * ( ) {
2020 const workDir = path_1 . default . resolve ( misc_1 . getWorkspace ( ) , '.work' ) ;
2121 const buildDir = path_1 . default . resolve ( workDir , 'build' ) ;
22- const pushDir = path_1 . default . resolve ( workDir , 'build ' ) ;
22+ const pushDir = path_1 . default . resolve ( workDir , 'push ' ) ;
2323 signale_1 . default . info ( `Deploying branch %s to %s` , branch , misc_1 . getRepository ( context ) ) ;
2424 fs_1 . default . mkdirSync ( pushDir , { recursive : true } ) ;
2525 yield exports . prepareFiles ( buildDir , pushDir , context ) ;
@@ -38,9 +38,7 @@ exports.prepareFiles = (buildDir, pushDir, context) => __awaiter(this, void 0, v
3838const cloneForBranch = ( pushDir , branch , context ) => __awaiter ( this , void 0 , void 0 , function * ( ) {
3939 signale_1 . default . info ( `Cloning the branch %s from the remote repo` , branch ) ;
4040 const url = misc_1 . getGitUrl ( context ) ;
41- yield execAsync ( `cd ${ pushDir } && ls -lat` ) ;
4241 yield execAsync ( `git -C ${ pushDir } clone --quiet --branch=${ branch } --depth=1 ${ url } .` , true , 'git clone' , true ) ;
43- yield execAsync ( `cd ${ pushDir } && ls -lat` ) ;
4442 if ( ! fs_1 . default . existsSync ( path_1 . default . resolve ( pushDir , '.git' ) ) ) {
4543 yield gitInit ( pushDir ) ;
4644 yield gitCheckout ( pushDir , branch ) ;
0 commit comments