Tôi đang sử dụng OSX và muốn nhận repo svn vào repo git cục bộ sử dụng sourcetree
.Trên OSX sử dụng sourcetree/git-svn get "Không tìm được SVN/Core.pm ở @INC"
Khi tôi thêm một bookmark bằng sourcetree sử dụng URL SVN, do đó sourcetree
biết đó là một url SVN, nhưng khi tôi bấm nút clone, nó báo cáo một lỗi như sau:
Can't locate SVN/Core.pm in @INC (@INC contains: /usr/local/git/lib/perl5/site_perl /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Editor.pm line 5.
BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Editor.pm line 5.
Compilation failed in require at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 81.
BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 81.
tôi không làm thế nào để vượt qua. Bất cứ ai có thể cho tôi một con trỏ trên làm thế nào để làm điều này?
Không có khái niệm "nhân bản" kho lưu trữ SVN như có trong git. Họ làm việc hoàn toàn khác nhau. Với Subversion, bạn ** kiểm tra ** một bản sao làm việc từ một kho lưu trữ (hoặc phổ biến hơn, một tập hợp con của một kho lưu trữ) - bạn không kéo xuống toàn bộ bản sao của kho lưu trữ. – alroc
Tôi đã giải quyết vấn đề này, gây ra sự cố với cấu hình xcode perl mới. dù sao, cảm ơn bạn đã quan tâm đến ur. – wshcdr
Cuối cùng tôi đã giải quyết vấn đề này theo liên kết này http://victorquinn.com/blog/2012/02/19/fix-git-svn-in-mountain-lion/ – wshcdr