From 8983bad00aac03914d5520a56d9ff891b68aede5 Mon Sep 17 00:00:00 2001 From: jin Date: Sun, 14 Jan 2024 23:47:05 +0300 Subject: [PATCH] $mol_build: auto pull --- build/build.node.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build/build.node.ts b/build/build.node.ts index 680beeb551f..ddb7dfd53c4 100644 --- a/build/build.node.ts +++ b/build/build.node.ts @@ -595,8 +595,15 @@ namespace $ { if( mod.type() !== 'dir' ) return false const git_dir = mod.resolve( '.git' ) - if( git_dir.exists() ) return false - + if( git_dir.exists() ) { + + this.$.$mol_exec( mod.path() , 'git' , 'pull', '--deepen=1' ) + // mod.reset() + // for ( const sub of mod.sub() ) sub.reset() + + return false + } + for( let repo of mapping.select( 'pack' , mod.name() , 'git' ).sub ) { this.$.$mol_exec( mod.path() , 'git' , 'init' )