ck 4 years ago
parent
commit
45b210e634
1 changed files with 1 additions and 2 deletions
  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())