Commit 280fd5659e55bc23f80c03d64513c47db2dc839b
Make test commit deterministic
Charles Lehner committed on 2/8/2016, 4:37:23 AMParent: 12cc851c71e6ab09d98c2ce054c7ae44d20f85b3
Files changed
test/run.js | changed |
test/run.js | ||
---|---|---|
@@ -6,8 +6,10 @@ | ||
6 | 6 | var fs = require('fs') |
7 | 7 | |
8 | 8 | var env = Object.create(process.env) |
9 | 9 | env.PATH = __dirname + ':' + env.PATH |
10 | +env.GIT_AUTHOR_DATE = env.GIT_COMMITTER_DATE = '1000000000 -0500' | |
11 | +var author = 'root <root@localhost>' | |
10 | 12 | var remote = 'test.js://foo' |
11 | 13 | |
12 | 14 | var tmpDir = mktemp.createDirSync(path.join(require('os').tmpdir(), 'XXXXXXX')) |
13 | 15 | |
@@ -23,9 +25,15 @@ | ||
23 | 25 | |
24 | 26 | tape('init repo', function (t) { |
25 | 27 | git('init', function (code) { |
26 | 28 | 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 | + }) | |
28 | 36 | }) |
29 | 37 | }) |
30 | 38 | |
31 | 39 | tape('push with empty repo', function (t) { |
Built with git-ssb-web