File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ def initialize_repo(self):
154154 clone_args .extend (['--branch' , self .branch_name ])
155155 clone_args .extend (["--" , self .git_url , self .repo_dir ])
156156 yield from execute_cmd (clone_args )
157+ if os .path .exists (os .path .join (self .repo_dir , '.nbgitpuller.script.init' )):
158+ logging .info ('Running init script' )
159+ yield from execute_cmd ('. ./.nbgitpuller.script.init' , cwd = self .repo_dir , shell = True )
157160 logging .info ('Repo {} initialized' .format (self .repo_dir ))
158161
159162 def reset_deleted_files (self ):
@@ -333,6 +336,9 @@ def update(self):
333336 yield from self .ensure_lock ()
334337 yield from self .merge ()
335338
339+ if os .path .exists (os .path .join (self .repo_dir , '.nbgitpuller.script.update' )):
340+ logging .info ('Running update script' )
341+ yield from execute_cmd ('. ./.nbgitpuller.script.update' , cwd = self .repo_dir , shell = True )
336342
337343def main ():
338344 """
You can’t perform that action at this time.
0 commit comments