Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git svn clone: <file> was not found in commit <sha>

I am trying to git svn clone the SSH.NET repository from Codeplex. My command is:

git svn clone https://sshnet.svn.codeplex.com/svn/

But it always stops with an error message. This is my first time got an error during git svn clone, I don't know how this SVN repository is special.

I have tried to google for an answer, but nothing I found was working for me. I have read:

  • git svn - <file> was not found in commit <hash>
  • How do I resolve a git-svn index mismatch?
  • http://orville.thebennettproject.com/articles/git-troubleshooting/

Here's the error message:

r9445 = e8eb2162b4e5cc6b5b5129f0739c4f60cc42a58a (refs/remotes/git-svn)
        M       Renci.SshClient/Renci.SshNet/Sftp/SftpFileStream.cs
        M       Renci.SshClient/Renci.SshNet/Sftp/SftpFile.cs
        M       Renci.SshClient/Renci.SshNet/SshCommand.cs
        M       Renci.SshClient/Renci.SshNet/Shell.cs
        M       Renci.SshClient/Renci.SshNet/SftpClient.cs
        M       Renci.SshClient/Renci.SshNet/PrivateKeyFile.cs
        M       Renci.SshClient/Renci.SshNet/ConnectionInfo.cs
r9486 = 91aea22d35ad41f70fa583d262438cf00a0a117d (refs/remotes/git-svn)
        M       Renci.SshClient/Renci.SshNet/Security/Cryptography/Ciphers/RsaCi
pher.cs
        A       Renci.SshClient/Renci.SshNet/Security/Cryptography/RsaKey.cs
Renci.SshClient/Renci.SshNet/Security/Cryptography/RsaDigitalSignature.cs was no
t found in commit 91aea22d35ad41f70fa583d262438cf00a0a117d (r9486)
like image 468
Aimeast Avatar asked Nov 10 '22 16:11

Aimeast


1 Answers

$ git svn fetch --ignore-path hoge

hoge is the path of your file which has an error. (Renci.SshClient/Renci.SshNet/Security/Cryptography/RsaDigitalSignature.cs)

like image 62
Nguyen Thanh Hung Avatar answered Nov 15 '22 06:11

Nguyen Thanh Hung