File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,11 @@ let delete_should_be_empty =
183
183
let run path =
184
184
let open Rresult in
185
185
Bos.OS.Dir. with_current path @@ fun () ->
186
+ Bos.OS.Cmd. run Bos.Cmd. (v " git" % " config" % " user.name" % " test" )
187
+ >> = fun () ->
188
+ Bos.OS.Cmd. run
189
+ Bos.Cmd. (v
" git" % " config" % " user.email" % " [email protected] " )
190
+ >> = fun () ->
186
191
Bos.OS.Cmd. run Bos.Cmd. (v " git" % " commit" % " -m" % " ." ) >> = fun () ->
187
192
load ~hash: SHA1 Fpath. (v " .git" / " index" ) >> = fun t ->
188
193
(* XXX(dinosaure): [git] deletes [should-be-empty] into the index file **AND**
Original file line number Diff line number Diff line change @@ -385,6 +385,11 @@ let commit_foo store =
385
385
let commit =
386
386
let open Rresult in
387
387
Bos.OS.Dir. with_current path @@ fun () ->
388
+ Bos.OS.Cmd. run Bos.Cmd. (v " git" % " config" % " user.name" % " test" )
389
+ >> = fun () ->
390
+ Bos.OS.Cmd. run
391
+ Bos.Cmd. (v
" git" % " config" % " user.email" % " [email protected] " )
392
+ >> = fun () ->
388
393
Bos.OS.File. write (Fpath. v " foo" ) " " >> = fun () ->
389
394
Bos.OS.Cmd. run Bos.Cmd. (v " git" % " add" % " foo" ) >> = fun () ->
390
395
Bos.OS.Cmd. run Bos.Cmd. (v " git" % " commit" % " -m" % " ." ) >> = fun () ->
@@ -1490,6 +1495,11 @@ let test_partial_fetch_ssh () =
1490
1495
let fiber =
1491
1496
let open Rresult in
1492
1497
OS.Dir. with_current path @@ fun () ->
1498
+ OS.Cmd. run Bos.Cmd. (v " git" % " config" % " user.name" % " test" )
1499
+ >> = fun () ->
1500
+ OS.Cmd. run
1501
+ Bos.Cmd. (v
" git" % " config" % " user.email" % " [email protected] " )
1502
+ >> = fun () ->
1493
1503
OS.Cmd. run Cmd. (v " touch" % " foo" ) >> = fun () ->
1494
1504
OS.Cmd. run Cmd. (v " git" % " add" % " foo" ) >> = fun () ->
1495
1505
OS.Cmd. run Cmd. (v " git" % " commit" % " -m" % " ." )
@@ -1503,6 +1513,11 @@ let test_partial_fetch_ssh () =
1503
1513
let fiber =
1504
1514
let open Rresult in
1505
1515
OS.Dir. with_current path @@ fun () ->
1516
+ OS.Cmd. run Bos.Cmd. (v " git" % " config" % " user.name" % " test" )
1517
+ >> = fun () ->
1518
+ OS.Cmd. run
1519
+ Bos.Cmd. (v
" git" % " config" % " user.email" % " [email protected] " )
1520
+ >> = fun () ->
1506
1521
OS.Cmd. run Cmd. (v " touch" % " bar" ) >> = fun () ->
1507
1522
OS.Cmd. run Cmd. (v " git" % " add" % " bar" ) >> = fun () ->
1508
1523
OS.Cmd. run Cmd. (v " git" % " commit" % " -m" % " ." ) >> = fun () ->
You can’t perform that action at this time.
0 commit comments