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 ):
@@ -333,6 +336,9 @@ def update(self):
333
336
yield from self .ensure_lock ()
334
337
yield from self .merge ()
335
338
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 )
336
342
337
343
def main ():
338
344
"""
You can’t perform that action at this time.
0 commit comments