public function deleteTag($tag)
    {
        if ($tag instanceof Tag) {
            $tag->delete();
        } else {
            Tag::pick($this, $tag)->delete();
        }

        return $this;
    }
public function deleteTag($tag)
    {
        if ($tag instanceof Tag) {
            $tag->delete();
        } else {
            Tag::pick($this, $tag)->delete();
        }

        return $this;
    }
public function deleteTag ( $ tag ) { if ( $ tag instanceof Tag ) { $ tag -> delete ( ) ; } else { Tag :: pick ( $ this , $ tag ) -> delete ( ) ; } return $ this ; }
Delete a tag by it's name or by passing a Tag object
This function change the state of the repository on the filesystem

@param string|Tag $tag The tag name or the Tag object

@throws \RuntimeException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return Repository
Delete a tag by it s name or by passing a Tag object This function change the state of the repository on the filesystem