瀏覽代碼

Test fixe git distant

stany.ferer 3 月之前
父節點
當前提交
0ba26221c5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/class/git.class.php

+ 2 - 0
core/class/git.class.php

@@ -43,6 +43,8 @@ class git
         } else {
             $target = "origin/" . $_target;
         }
+
+        exec('git fetch --all --prune');
         $output = [];
         $retval = 0;
         $cmd = 'git log --pretty="%H" -n1 ' . $target;