This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,20 @@
Test the behaviour of Dune querying git when the repo has no commit.
Create a repository with no HEAD commit:
$ git init --quiet
... and an executable that links `dune-build-info':
$ echo "(lang dune 2.0)" > dune-project
$ touch main.ml
$ cat >dune <<EOF
> (executable
> (name main)
> (libraries dune-build-info)
> (promote (until-clean)))
> EOF
Dune handles this gracefully since #4441
$ dune exec ./main.exe 2>&1