Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Reference IsTag() is broken #461

@andrewrynhard

Description

@andrewrynhard

Checkout a tag:

git checkout v0.1.0

Then run a go program that uses go-git like so:

ref, _ := repo.Head()
println(ref.Name())
println(ref.IsTag())

The output shows that Name() returns HEAD and IsTag() returns false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions