libgit2 / libgit2/libgit2sharp
Cannot stage a folder which contains a file with name ".git"
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
- Use LibGit2Sharp to work on a local git repository
- Create some random sub folders in that local repository folder
- Create in some of these subfolders a file with the name ".git"
- Try to stage all changes
Expected behavior
Like with e.g. Git for Windows
https://git-scm.com/download/win
The file gets just added to the repro without any exception
At least I would expect a better error description
Actual behavior
The LibGit2Sharp stage process crashes with an exception.
The exception contains the message "Invalid path"
It took a while till I figured out why this actually happens.
Version of LibGit2Sharp (release number or SHA1)
Nuget version of LibGit2Sharp: 0.26.0 (Current latest)
Nuget version of LibGit2Sharp.NativeBinaries: 2.0.267 (Newer version available but not compatible to newest LibGit2Sharp)
Operating system(s) tested; .NET runtime tested
Windows 10 Version 1903 - Build 18362.239
Project settings
The project in which I use the LibGit2Sharp is build with Visual Studio 2019.
The project uses the .Net Framework 4.7.2
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 staging trên Windows 10 với LibGit2Sharp 0.26.0 và LibGit2Sharp.NativeBinaries 2.0.267 bằng cách sử dụng một repository chứa một tệp có tên ".git" trong một thư mục con. So sánh hành vi với Git for Windows, sau đó truy vết đường dẫn staging tạo ra ngoại lệ "Invalid path". Được xem là hoàn tất khi tệp có thể được đưa vào staging mà không phát sinh ngoại lệ, hoặc khi lỗi xác định rõ nguyên nhân.
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