Skip to content

Commit 7a5a31b

Browse files
committed
redirect git stderr to /dev/null
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent b7c8bf4 commit 7a5a31b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/dune_engine/vcs.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ let run_git t args =
8686
let res =
8787
Process.run_capture (git_accept ()) (prog t) args ~dir:t.root
8888
~env:Env.initial
89+
~stderr_to:(Process.Io.file Config.dev_null Out)
8990
in
9091
let open Fiber.O in
9192
let+ res = res in

test/blackbox-tests/test-cases/github4429.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ Create a repository with no HEAD commit:
1818
At the moment Dune fails, which is bad:
1919

2020
$ dune exec ./main.exe 2>&1 | sed 's/.*\/git/{{ git }}/; s/> .*.output/> {{ output_file }}/g'
21-
git (internal)
22-
fatal: bad revision 'HEAD'
2321

0 commit comments

Comments
 (0)