ck %!s(int64=4) %!d(string=hai) anos
pai
achega
45b210e634
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      handlers/GitHookHandler.py

+ 1 - 2
handlers/GitHookHandler.py

@@ -6,7 +6,6 @@ from model import DingTalkUtils
 class DataCenerHook(BaseHandler):
 
     def post(self):
-        os.system('cd /home/qc/DataCenter')
-        val= os.popen('git pull')
+        val= os.popen('cd /home/qc/DataCenter && git pull')
         self.write('ok')
         DingTalkUtils.send('DataCenter代码更新:\n '+val.read())