git ssb

0+

cel / pull-git-remote-helper



Commit 280fd5659e55bc23f80c03d64513c47db2dc839b

Make test commit deterministic

Charles Lehner committed on 2/8/2016, 4:37:23 AM
Parent: 12cc851c71e6ab09d98c2ce054c7ae44d20f85b3

Files changed

test/run.jschanged
test/run.jsView
@@ -6,8 +6,10 @@
66 var fs = require('fs')
77
88 var env = Object.create(process.env)
99 env.PATH = __dirname + ':' + env.PATH
10+env.GIT_AUTHOR_DATE = env.GIT_COMMITTER_DATE = '1000000000 -0500'
11+var author = 'root <root@localhost>'
1012 var remote = 'test.js://foo'
1113
1214 var tmpDir = mktemp.createDirSync(path.join(require('os').tmpdir(), 'XXXXXXX'))
1315
@@ -23,9 +25,15 @@
2325
2426 tape('init repo', function (t) {
2527 git('init', function (code) {
2628 t.equals(code, 0, 'inited')
27- t.end()
29+ git('config', 'user.name', 'test', function (code) {
30+ t.equals(code, 0, 'set user name')
31+ git('config', 'user.email', 'test@localhost', function (code) {
32+ t.equals(code, 0, 'set user email')
33+ t.end()
34+ })
35+ })
2836 })
2937 })
3038
3139 tape('push with empty repo', function (t) {

Built with git-ssb-web