File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pipeline" ,
3
3
"description" : " Be less busy, less mistake in Salesforce metadata deploy" ,
4
- "version" : " 2.0.1 " ,
4
+ "version" : " 2.0.2 " ,
5
5
"private" : false ,
6
6
"main" : " src/main.js" ,
7
7
"dependencies" : {
Original file line number Diff line number Diff line change @@ -355,11 +355,16 @@ class GitApi {
355
355
NodeGit . Reset . reset ( repos , commit , 3 , { } ) ;
356
356
} )
357
357
. then ( function ( success ) {
358
- // Copy metadata from git folder to metadata folder
358
+ // Copy metadata src folder from git into metadata folder
359
359
let gitPath = self . getGitFolder ( path . join ( 'pipeline' , self . pipeline . id ) ) ;
360
360
const rootDir = self . pipeline . path ;
361
361
if ( rootDir ) gitPath = path . join ( gitPath , rootDir ) ;
362
+ gitPath = path . join ( gitPath , 'src' ) ;
363
+ if ( ! fse . pathExistsSync ( gitPath ) ) {
364
+ return reject ( new Error ( 'src folder is not found.' ) ) ;
365
+ }
362
366
let metaPath = metadata . getMetadataFolder ( self . pipeline . id ) ;
367
+ metaPath = path . join ( metaPath , 'src' ) ;
363
368
fse . copy ( gitPath , metaPath , function ( err ) {
364
369
if ( err ) return reject ( err ) ;
365
370
return resolve ( success ) ;
You can’t perform that action at this time.
0 commit comments