git ssb

2+

cel / git-airpaste



Tree: 18024992bfb2fc4f955daa3aeaf04a6f7dc68e01

Files: 18024992bfb2fc4f955daa3aeaf04a6f7dc68e01 / bin / git-airpaste

346 bytesRaw
1#!/usr/bin/env node
2
3var proc = require('child_process')
4var airpaste = require('airpaste')
5
6var namespace = process.argv[2]
7var stream = airpaste(namespace)
8var child = proc.spawn('git', ['remote-ext', namespace, 'git %s .'], {
9 stdio: ['pipe', 'pipe', 'inherit'],
10})
11child.stdout.pipe(stream).pipe(child.stdin)
12child.on('close', process.exit)
13

Built with git-ssb-web