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.

Get Hash of latest commit #1034

Closed
Closed
@SchulteMK

Description

@SchulteMK

Thanks for the great work!

I am trying to receive the hash of the latest commit from a remote repository without cloning it. I already found out that this method exists: func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error). But my problem is that I am not able to create an *Remote object because its fields are "hidden".

Can someone help me out please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions