I am trying to retrieve items from a specific Branch on a git repo using GetItemsAsync
It looks like I should be able to specify the branch through the GitVersionDescriptor, and by setting the version type to Branch. However, when I do so, I don't retrieve items from the branch I am attempting to get from.
my C# code is like:
GitVersionDescriptor versionDesc = new GitBaseVersionDescriptor()
{
VersionType = GitVersionType.Branch,
Version = "myBranchNameHere"
}
var task = gitClient.GetItemsAsync(repositoryId: <myrepoid>,
recursionLevel: VersionControlRecursionType.Full,
scopePath: "/",
versionDescriptor: versionDesc);
that all works and I get my Items, however, the Items I get do not match the Branch, the instead come back from the repo's master branch.
I am trying to retrieve items from a specific Branch on a git repo using GetItemsAsync
It looks like I should be able to specify the branch through the GitVersionDescriptor, and by setting the version type to Branch. However, when I do so, I don't retrieve items from the branch I am attempting to get from.
my C# code is like:
that all works and I get my Items, however, the Items I get do not match the Branch, the instead come back from the repo's master branch.
Jeff