가장 마지막에 업데이트한 git tree-ish path를 저장하는 기능 추가

This commit is contained in:
2018-05-12 06:04:06 +09:00
parent bb49e6dec7
commit bad5a3c0ef
4 changed files with 11 additions and 10 deletions
+4 -1
View File
@@ -16,6 +16,8 @@ $result = [];
$server = [];
$storage = new \sammo\KVStorage(RootDB::db(), 'git_path');
$serverGitPath = $storage->getAll();
$rootServer = Util::array_last(AppConf::getList())->getShortName();
@@ -74,7 +76,8 @@ foreach (AppConf::getList() as $setting) {
'name' => $serverDir,
'korName' => $serverKorName,
'color' => $serverColor,
'isRoot' => $serverDir == $rootServer
'isRoot' => $serverDir == $rootServer,
'lastGitPath' => ($serverGitPath[$serverDir][0])??'origin/master'
];
$server[] = $state;
}