소스 검색

이렇게 인가

ect (or 2du) 8 년 전
부모
커밋
f16f434a86
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      app.py

+ 1 - 2
app.py

@@ -1072,9 +1072,8 @@ def update():
     if platform.system() == 'Linux':
         print('Update')
 
-        os.system('git remote rm origin')
         os.system('git remote add origin https://github.com/2DU/openNAMU.git')
-        ok = os.system('git pull origin ' + up_data)
+        ok = os.system('git reset --hard origin/' + up_data)
         if ok == 0:
             return redirect('/re_start')
         else: