File tree 1 file changed +6
-0
lines changed
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):
154
154
clone_args .extend (['--branch' , self .branch_name ])
155
155
clone_args .extend (["--" , self .git_url , self .repo_dir ])
156
156
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 )
157
160
logging .info ('Repo {} initialized' .format (self .repo_dir ))
158
161
159
162
def reset_deleted_files (self ):
@@ -343,6 +346,9 @@ def update(self):
343
346
yield from self .ensure_lock ()
344
347
yield from self .merge ()
345
348
349
+ if os .path .exists (os .path .join (self .repo_dir , '.nbgitpuller.script.update' )):
350
+ logging .info ('Running update script' )
351
+ yield from execute_cmd ('. ./.nbgitpuller.script.update' , cwd = self .repo_dir , shell = True )
346
352
347
353
def main ():
348
354
"""
You can’t perform that action at this time.
0 commit comments