libgit2 / libgit2/libgit2sharp
Remotes are sometimes not returned for worktree
Đang mở
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 3.5k
- Fork
- 925
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Reproduction steps
- Create repository with remote and commit.
- Create branch and create a worktree from that branch.
- Copy the path to worktree and run the following code:
var worktreePath = "Here is your worktree path";
var repositoryPath = Repository.Discover(worktreePath);
var repo = new Repository(repositoryPath);
var before = repo.Network.Remotes.ToArray();
_ = repo.Head.RemoteName;
var after = repo.Network.Remotes.ToArray();
Expected behavior
Both before and after 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách chạy bản tái hiện C# đã được báo cáo trên master mới nhất, tập trung vào Repository.Discover, repo.Network.Remotes và repo.Head.RemoteName với một worktree được liên kết. Truy vết lý do việc truy cập Head.RemoteName làm thay đổi kết quả của remotes; hoàn tất khi cả trước và sau đều chứa remote của repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, git
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100