libgit2 / libgit2/libgit2sharp
"Out of memory" LibGit2SharpException thrown when attempting to clone using Repository.Clone(...)
Đ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 a repo.
- Add some large files (>700 MB).
- Move the large files and author a commit.
- Attempt to clone the repo using Repository.Clone(...)
- Observe that a LibGit2SharpException is thrown with a message that states "Out of memory".
Expected behavior
- Create a repo.
- Add some large files (>700 MB).
- Move the large files and author a commit.
- Attempt to clone the repo using Repository.Clone(...)
- Clone succeeds without throwing an exception.
Actual behavior
- Create a repo.
- Add some large files (>700 MB).
- Move the large files and author a commit.
- Attempt to clone the repo using Repository.Clone(...)
- Observe that a LibGit2SharpException is thrown with a message that states "Out of memory".
Version of LibGit2Sharp (release number or SHA1)
0.27.0-preview-0175
Operating system(s) tested; .NET runtime tested
.NET Framework 4.6.1
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
Tái hiện sự cố với một repository chứa các tệp đã được di chuyển có kích thước lớn hơn 700 MB, bằng cách sử dụng Repository.Clone(...) trên .NET Framework 4.6.1. Bắt đầu bằng việc kiểm tra LibGit2SharpException báo cáo "Out of memory" trong khi clone. Hoàn tất khi cùng repository đó được clone thành công mà không ném ra ngoại lệ này.
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
- devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100