소스 검색

Add git pull to set funtcion

JoostSijm 6 년 전
부모
커밋
51482ca9c5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/util/job.py

+ 2 - 0
app/util/job.py

@@ -26,6 +26,8 @@ def run():
     if os.path.basename(working_dir) != 'rr_tutorial':
         os.chdir('rr_tutorial')
 
+    subprocess.check_output(['git', 'pull'])
+
     book_toc_size = os.path.getsize('master_book.toc') \
         if os.path.isfile('master_book.toc') else 0
     article_toc_size = os.path.getsize('master_article.toc') \