no message

This commit is contained in:
hellcat 2025-04-14 14:47:46 +08:00
parent 8ba1010cc2
commit 2e157ee1a7
2 changed files with 6 additions and 2 deletions

View File

@ -80,11 +80,11 @@ class CronController
$sGithubProjectUrl = env("github_url_base").":".$this->sUserName."/".$this->sProjectName.".git";
$output = shell_exec("sh " . $sGitShDir . "/init.sh " . escapeshellarg($sUserProjectDir) . " " . escapeshellarg($sGithubProjectUrl));
$output = shell_exec("sh " . $sGitShDir . "/init.sh " . escapeshellarg($sUserProjectDir) . " " . escapeshellarg($sGithubProjectUrl) . " " . escapeshellarg($this->sUserName));
echo "Output from init.sh:\n$output\n";
// $output = shell_exec("git config --global --add safe.directory $sUserProjectDir 2>&1");
$output = shell_exec("git config --global --add safe.directory $sUserProjectDir 2>&1");
//
// echo "<br>Output from --add safa.directory:\n$output\n";
}

View File

@ -15,6 +15,10 @@ git init
# 添加安全目录
git config --local --add safe.directory "$1"
# 设置用户
git config --local user.name "$3"
git config --local user.email "$3"."@tuta.io"
# 添加文件到暂存区
git add .