From fcf6f3149afe1a92099e2fc9c3fb01b0e80f9488 Mon Sep 17 00:00:00 2001 From: lichengjun Date: Fri, 16 Jul 2021 10:08:19 +0800 Subject: [PATCH] Fix code bug. --- module/repo/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/repo/model.php b/module/repo/model.php index 77ac01b33f..ea58cf60a0 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -638,6 +638,7 @@ class repoModel extends model { $commitID = $this->dao->lastInsertID(); if($branch) $this->dao->replace(TABLE_REPOBRANCH)->set('repo')->eq($repoID)->set('revision')->eq($commitID)->set('branch')->eq($branch)->exec(); + $file = array(); foreach($logs['files'][$i] as $file) { $parentPath = dirname($file->path);