You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create branch and create a worktree from that branch.
Copy the path to worktree and run the following code:
varworktreePath="Here is your worktree path";varrepositoryPath= Repository.Discover(worktreePath);varrepo=new Repository(repositoryPath);varbefore= repo.Network.Remotes.ToArray();_= repo.Head.RemoteName;varafter= repo.Network.Remotes.ToArray();
Expected behavior
Both before and after variable contain remote.
Actual behavior
The before variable contains remote, after is empty.
Reproduction steps
Expected behavior
Both
before
andafter
variable contain remote.Actual behavior
The
before
variable contains remote,after
is empty.Version of LibGit2Sharp (release number or SHA1)
Latest master:
7f59d22c4fdb7b3d14511aca567e64eefaa43ab2
Operating system(s) tested; .NET runtime tested
Windows, .NET Framework 462 and .NET Core 2.1. I believe it doesn't matter.
The text was updated successfully, but these errors were encountered: