From f54543f1dd3ca2fb22c3d790016f3449100e57a6 Mon Sep 17 00:00:00 2001 From: Chris Ball Date: Sat, 16 May 2015 02:28:44 -0400 Subject: gitswarmd writing out a pack file --- git-remote-gitswarm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git-remote-gitswarm') diff --git a/git-remote-gitswarm b/git-remote-gitswarm index f6b1aed..98ac48a 100755 --- a/git-remote-gitswarm +++ b/git-remote-gitswarm @@ -50,6 +50,9 @@ exec('git ls-remote ' + url + ' HEAD', function (err, stdout, stderr) { swarm.on('wire', function (wire) { console.error('we got a wire') wire.use(ut_gitswarm()) - // wire.ut_gitswarm.askforsha(parsed.infoHash) + wire.ut_gitswarm.on('handshake', function () { + console.error('in ut_gitswarm on handshake') + wire.ut_gitswarm.ask(parsed.infoHash) + }) }) }) -- cgit v1.2.3