no message
This commit is contained in:
parent
8ba1010cc2
commit
2e157ee1a7
@ -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";
|
||||
}
|
||||
|
||||
@ -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 .
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user