Skip to content

Commit

Permalink
$mol_build: git auto pull
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Zubkov committed Nov 22, 2023
1 parent 62ad2cb commit 065c5ef
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/build.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,16 @@ namespace $ {
if( mod.type() !== 'dir' ) return false

const git_dir = mod.resolve( '.git' )
if( git_dir.exists() ) return false
// if( git_dir.exists() ) return false

if( git_dir.exists() ) {
this.$.$mol_exec( mod.path() , 'git' , 'pull' )
mod.reset()
for ( const sub of mod.sub() ) {
sub.reset()
}
return false
}

for( let repo of mapping.select( 'pack' , mod.name() , 'git' ).sub ) {

Expand Down

0 comments on commit 065c5ef

Please sign in to comment.