execute git commands from the repo folder

This commit is contained in:
Usman Nasir
2020-06-22 23:21:32 +05:00
parent 8cac24ab06
commit a455a3eab4
2 changed files with 15 additions and 7 deletions

View File

@@ -4208,14 +4208,14 @@ StrictHostKeyChecking no
GitLogs(owner=self.web, type='INFO',
message='Running: %s' % (command)).save()
result = ProcessUtilities.outputExecutioner(command, self.web.externalApp)
result = ProcessUtilities.outputExecutioner(command, self.web.externalApp, None, self.folder)
GitLogs(owner=self.web, type='INFO',
message='Result: %s' % (result)).save()
else:
GitLogs(owner=self.web, type='INFO',
message='Running: %s' % (gitConf['commands'])).save()
result = ProcessUtilities.outputExecutioner(gitConf['commands'], self.web.externalApp)
result = ProcessUtilities.outputExecutioner(gitConf['commands'], self.web.externalApp, None, self.folder)
GitLogs(owner=self.web, type='INFO',
message='Result: %s' % (result)).save()