$ . ../git-helpers.sh subst assumes that dune-project always exists: $ git init -q $ touch foo $ git add -A $ git commit -m "test" -q $ dune subst File ".", line 1, characters 0-0: Error: There is no dune-project file in the current directory, please add one with a (name ) field in it. Hint: 'dune subst' must be executed from the root of the project. [1]