* fix bug for check tag.

This commit is contained in:
wangyidong
2020-04-08 16:29:23 +08:00
parent 2b69daba37
commit 523eb57d6a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -153,11 +153,11 @@ class gitModel extends model
foreach($jobs as $job)
{
$tags = $this->getRepoTags($repo);
$isNew = false;
$isNew = empty($job->lastTag) ? true : false;
$lastTag = '';
foreach($tags as $tag)
{
if($tag == $job->lastTag)
if(!$isNew and $tag == $job->lastTag)
{
$isNew = true;
continue;