镜像自地址
https://github.com/JGZYES/ParlzPackageManger.git
已同步 2026-09-11 05:42:44 +08:00
fix(git.php): repair broken string literal in clone-fail message (parse error)
这个提交包含在:
+1
-1
@@ -19,7 +19,7 @@ if (isset($_GET['action']) && $_GET['action'] === 'init') {
|
|||||||
$cmd = 'git clone --depth 1 ' . escapeshellarg($REPO_URL) . ' ' . escapeshellarg($REPO_DIR) . ' 2>&1';
|
$cmd = 'git clone --depth 1 ' . escapeshellarg($REPO_URL) . ' ' . escapeshellarg($REPO_DIR) . ' 2>&1';
|
||||||
$out = (string)@shell_exec($cmd);
|
$out = (string)@shell_exec($cmd);
|
||||||
if (is_dir($REPO_DIR . '/.git')) echo 'OK';
|
if (is_dir($REPO_DIR . '/.git')) echo 'OK';
|
||||||
else echo '克隆失败:' . substr($out, 0, 220) . "\n(请确保 PHP 对 ' . $REPO_DIR . ' 可写:chmod -R 775 ' . $REPO_DIR . ' 或其父目录;或设 PMM_SRC_DIR)';
|
else echo '克隆失败:' . substr($out, 0, 220) . "\n(请确保 PHP 对 " . $REPO_DIR . " 可写:chmod -R 775 " . $REPO_DIR . " 或其父目录;或设 PMM_SRC_DIR)";
|
||||||
} else {
|
} else {
|
||||||
$out = (string)@shell_exec('git -C ' . escapeshellarg($REPO_DIR) . ' pull --depth 1 2>&1');
|
$out = (string)@shell_exec('git -C ' . escapeshellarg($REPO_DIR) . ' pull --depth 1 2>&1');
|
||||||
echo 'OK (pull: ' . substr(trim($out), 0, 80) . ')';
|
echo 'OK (pull: ' . substr(trim($out), 0, 80) . ')';
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户