From 065c5ef9899693be98dbf141e6114b06e85c31bf Mon Sep 17 00:00:00 2001 From: Pavel Zubkov <@zubkov_p> Date: Wed, 22 Nov 2023 20:20:24 +0300 Subject: [PATCH] $mol_build: git auto pull --- build/build.node.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build/build.node.ts b/build/build.node.ts index 533abcf9977..26ae5778c19 100644 --- a/build/build.node.ts +++ b/build/build.node.ts @@ -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 ) {