libgit2 / libgit2/libgit2sharp

Repository Clone Throws No error message has been provided by the native library Exception

Đang mở
#1,821 6 bình luận 5 reaction 0 người được giao Xem trên GitHub

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ả

Am trying list down the Remote Branches in my application. am getting No error message has been provided by the native library while cloning. its only happening on the few repos.

  var path = LibGit2Sharp.Repository.Clone(sourceUrl, workingDirectoryPath, cloneOptions);

            if (!bare)
            {
                using (var repo = new LibGit2Sharp.Repository(path))
                {
                    repo.Reset(ResetMode.Hard);
                }
            }

            return path;

Trace

LibGit2Sharp.LibGit2SharpException: No error message has been provided by the native library
 at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
 at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
 at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)


Reproduction steps

Am trying to clone huge repo with size around 750MB

Expected behavior

Clone the repository with out any error

Actual behavior

Should not throw "No error message has been provided by the native library Exception"

Version of LibGit2Sharp

0.26.0

Operating system(s) tested; .NET runtime tested

Local - WIndows Machine - its properly working
L2, L1 - Linux Docker Container - failing

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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 tái hiện lỗi thông qua Repository.Clone trong môi trường Linux Docker và so sánh với trường hợp Windows đang hoạt động. Theo dõi đường dẫn được báo cáo qua Core.Ensure.HandleError và Proxy.git_clone; hoàn tất khi repository bị ảnh hưởng được clone mà không gặp native-library exception và hành vi lỗi phát sinh được bao phủ.

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.