File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -355,17 +355,20 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {
355355
356356 for ( var line of gitChanges . split ( '\n' ) ) {
357357 if ( line . length > 0 && line [ 0 ] == ':' ) {
358+ try {
359+ var potentialFile = line . substring ( 32 ) . trimStart ( ) ;
358360
359- var potentialFile = line . substring ( 32 ) . trimStart ( ) ;
361+ var splitFile = potentialFile . split ( path . sep ) ;
360362
361- var splitFile = potentialFile . split ( path . sep ) ;
363+ if ( splitFile . length > 2 ) {
364+ var dataPackKey = splitFile [ splitFile . length - 3 ] + '/' + splitFile [ splitFile . length - 2 ] ;
362365
363- if ( splitFile . length > 2 ) {
364- var dataPackKey = splitFile [ splitFile . length - 3 ] + '/' + splitFile [ splitFile . length - 2 ] ;
365-
366- if ( ! changedDataPacks . includes ( dataPackKey ) ) {
367- changedDataPacks . push ( dataPackKey ) ;
366+ if ( ! changedDataPacks . includes ( dataPackKey ) ) {
367+ changedDataPacks . push ( dataPackKey ) ;
368+ }
368369 }
370+ } catch ( e ) {
371+ VlocityUtils . error ( 'Error Getting Filename' , e ) ;
369372 }
370373 }
371374 }
You can’t perform that action at this time.
0 commit comments