public function getReferenceName()
    {
        $options = $this->getOptions();
        if (!empty($options['tag'])) {
            return 'Tag: ' . $options['tag'];
        } elseif (!empty($options['branch'])) {
            return 'Branch: ' . $options['branch'];
        } elseif (!empty($options['sha1'])) {
            return 'Sha1: ' . $options['sha1'];
        }
        return '';
    }
public function getReferenceName()
    {
        $options = $this->getOptions();
        if (!empty($options['tag'])) {
            return 'Tag: ' . $options['tag'];
        } elseif (!empty($options['branch'])) {
            return 'Branch: ' . $options['branch'];
        } elseif (!empty($options['sha1'])) {
            return 'Sha1: ' . $options['sha1'];
        }
        return '';
    }
public function getReferenceName ( ) { $ options = $ this -> getOptions ( ) ; if ( ! empty ( $ options [ 'tag' ] ) ) { return 'Tag: ' . $ options [ 'tag' ] ; } elseif ( ! empty ( $ options [ 'branch' ] ) ) { return 'Branch: ' . $ options [ 'branch' ] ; } elseif ( ! empty ( $ options [ 'sha1' ] ) ) { return 'Sha1: ' . $ options [ 'sha1' ] ; } return '' ; }
Since sha1 is always shipped with branch and tag
configuration, we consider it for referenceName
only if neither tag nor branch was set.

@return string
Since sha1 is always shipped with branch and tag configuration we consider it for referenceName only if neither tag nor branch was set .