File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 48
48
# (<https://github.com/JuliaVersionControl/Git.jl/issues/40>) works correctly. While we run
49
49
# into that issue only on macOS, it's good to test it everywhere.
50
50
@testset " SIP workaround" begin
51
- gitd (dir, cmd) = run (` $(git ()) -C $(dir) -c "user.name=a" -c "user.email=b@c" $(cmd) ` )
51
+ gitd (dir, cmd; stdout = Base. stdout , stderr = Base. stderr ) =
52
+ run (pipeline (` $(git ()) -C $(dir) -c "user.name=a" -c "user.email=b@c" $(cmd) ` ;
53
+ stdout , stderr ))
52
54
branch = " dev"
53
55
mktempdir () do dir1; mktempdir () do dir2;
54
56
gitd (dir1, ` init --bare --quiet --initial-branch $(branch) ` )
60
62
gitd (dir2, ` commit --quiet -m test` )
61
63
gitd (dir2, ` remote add origin file://$(dir1) ` )
62
64
gitd (dir2, ` push --quiet --set-upstream origin $(branch) ` )
65
+ dir1_io, dir2_io = IOBuffer (), IOBuffer ()
66
+ gitd (dir1, ` log` ; stdout = dir1_io)
67
+ gitd (dir2, ` log` ; stdout = dir2_io)
68
+ # Make sure the logs are the same for the two repositories
69
+ dir1_log, dir2_log = String .(take! .((dir1_io, dir2_io)))
70
+ @test ! isempty (dir1_log) === ! isempty (dir2_log) === true
71
+ @test dir1_log == dir2_log
63
72
end ; end
64
73
end
You can’t perform that action at this time.
0 commit comments