Comments (4)
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.
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.
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.
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)
- Generating repo statistics using js-git HOT 2
- NodeJS Git Server HOT 4
- what is wrong with my syntax?
- repo.unpack callback is never called using HTTP transport HOT 7
- Where can I find examples? HOT 18
- Pull / push HOT 7
- commit.parents is not defined when using logWalk HOT 2
- Octal modes HOT 2
- read ref-delta cause infinite loop... HOT 2
- NPM package is outdated HOT 1
- Example on README doesn't show that the yield loadAs returns an array
- es-git: js-git 2.0 HOT 18
- Clone URL in browser? HOT 10
- pack-ops mixing doesn't work HOT 5
- Replace github-db with private git server? HOT 4
- In-memory file system HOT 2
- resolveRef should be available through a mix-in HOT 2
- Typo in mem-cache dupe?
- support simple HTTP protocol HOT 25
- bountysource.com/fundraisers is dead and the about link is sad HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-git.