Coder Social home page Coder Social logo

Comments (4)

ghostbar avatar ghostbar commented on September 26, 2024

Just tried with node/v0.10.15 and it's the very same thing. With node/v0.11.5 throws Error: Invalid HMAC BUT cloning from HTTPS directly at github (not gists) works like a charm even in node/v0.11.5.

from js-git.

creationix avatar creationix commented on September 26, 2024

So the reason it thinks all the files were deleted is because the .git/index file is missing. repo.checkout is supposed to create that file after extracting the tree from the commit, but it doesn't seem to in this case. I can reproduce locally.

Also, github lets you clone using ssh on my repo? I thought that only worked if you have write access. That's really cool if they added read-only support for the ssh protocol.

from js-git.

creationix avatar creationix commented on September 26, 2024

As far as ssh not working in 0.11.x I suspect that's because mcsdex/ssh2 hasn't been tested for that version of node. It still seems to export the old streams interface from back in node 0.6.x

from js-git.

ghostbar avatar ghostbar commented on September 26, 2024

Yes! As long as you have a ssh-key registered on GitHub you can do ssh read-only which is really awesome :-D

I think the issue with v0.11.x has to do with that actually. Now that I re-reproduce it the stacktrace directs to the ssh2 parser:

Error: Invalid HMAC
    at Parser.execute (/usr/local/lib/node_modules/js-git-node/node_modules/js-git-node-platform/node_modules/ssh2/lib/Parser.js:204:30)
    at Socket.<anonymous> (/usr/local/lib/node_modules/js-git-node/node_modules/js-git-node-platform/node_modules/ssh2/lib/Connection.js:1332:18)
    at Socket.EventEmitter.emit (events.js:100:17)
    at Socket.Readable.read (_stream_readable.js:357:10)
    at flow (_stream_readable.js:725:26)
    at emitReadable_ (_stream_readable.js:410:3)
    at emitReadable (_stream_readable.js:403:7)
    at readableAddChunk (_stream_readable.js:160:9)
    at Socket.Readable.push (_stream_readable.js:122:10)
    at TCP.onread (net.js:512:21)

from js-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.