diff --git a/module/repo/model.php b/module/repo/model.php index ef7c89a0b8..bb5ff44af7 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -1002,7 +1002,7 @@ class repoModel extends model $repoFile->oldPath = $info['oldPath']; $this->dao->insert(TABLE_REPOFILES)->data($repoFile)->exec(); - if($repoFile->oldPath) + if($repoFile->oldPath and $file->action == 'R') { $parentPath = dirname($repoFile->oldPath);