Skip to content

Commit

Permalink
redirect git stderr to /dev/null
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Apr 22, 2021
1 parent b7c8bf4 commit 7a5a31b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/dune_engine/vcs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ let run_git t args =
let res =
Process.run_capture (git_accept ()) (prog t) args ~dir:t.root
~env:Env.initial
~stderr_to:(Process.Io.file Config.dev_null Out)
in
let open Fiber.O in
let+ res = res in
Expand Down
2 changes: 0 additions & 2 deletions test/blackbox-tests/test-cases/github4429.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ Create a repository with no HEAD commit:
At the moment Dune fails, which is bad:

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

0 comments on commit 7a5a31b

Please sign in to comment.