Skip to content

LibGit2Sharp.Tests case where it pulls recent remote change and then checks it out? #1672

@verxion

Description

@verxion

I am having issues with getting REALLY RECENT new object commits when I do a pull/checkout of a branch. I looked through the Tests and didn’t see anywhere that was obviously doing this sort of test. Is there one?

Reproduction steps

Commit a brand new object using GitHub website.
Do a Commands.Pull/Commands.Checkout of the branch containing the object

Expected behavior

See new object

Actual behavior

Object is missing. Of note, I found that for some reason, if I get EVERY branch in the repo and then checkout the branch I actually need, I’ll end up with the new object most of the time (but not every time).

Version of LibGit2Sharp (release number or SHA1)

0.25.2

Operating system(s) tested; .NET runtime tested

Windows 7, Windows 10, .NET 4.7.1

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