git ssb

0+

cel / pull-git-remote-helper



Tree: cc32919e93ce91c6d66985c7ca2b78da5ea7f92d

Files: cc32919e93ce91c6d66985c7ca2b78da5ea7f92d / test / run.js

439 bytesRaw
1var spawn = require('child_process').spawn
2var tape = require('tape')
3
4var env = Object.create(process.env)
5env.PATH = 'test:' + env.PATH
6var remote = 'test.js://foo'
7
8function git(args, cb) {
9 spawn('git', args, {
10 env: env,
11 stdio: ['ignore', 'ignore', 'inherit']
12 }).on('close', cb)
13}
14
15tape('push to the remote', function (t) {
16 git(['push', remote], function (code) {
17 t.equals(code, 0, 'exit status')
18 t.end()
19 })
20})
21

Built with git-ssb-web