Definitely not. The sequence of the commands is of importance. You tried to set the safe directory before running the build script to build and install. The correct sequence is :
Itâs related to a github security update. You have just a command to type one time only on your system. See @pehar comment above (16th comment on april 18th).
An interrogation mark remains: why isnât it enough to run sudo git config --global --add safe.directory /home/user/darktable/master once for all? does git forget that value?