Browse Source

更新 'UpdateGitRep.js'

NiceTry12138 5 tháng trước cách đây
mục cha
commit
5b54b2e1d0
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      UpdateGitRep.js

+ 2 - 3
UpdateGitRep.js

@@ -35,9 +35,8 @@ function pullGitRepository(repositoryUrl, localPath) {
         // 路径已存在则拉取最新代码
         console.log(`Pull ${repositoryUrl} to ${localPath}...`);
 
-        if(!checkEditFileRep(localPath)) {
-            return;
-        }
+      	// 只检查 并提示 仍然尝试 Pull 操作
+        checkEditFileRep(localPath);
 
         child_process.exec("git pull", localPath, (error, stdout, stderr) => {
             totalGitRepPath.delete(localPath);