News for hackers. Stuff that matters.
Re:Speed Up C++ Compilation by billyzs on Saturday August 05, 2023 @04:13PM (#37015892)
I use worktrees, but some builds which uses git hash will fail in worktree checkouts, thinking that "it's not a git directory" (forgot the exact error, it's been a while); haven't found a solution to this
Re:Speed Up C++ Compilation by dragly on Saturday August 05, 2023 @04:40PM (#37016096)
One way to get an error when retrieving a git hash is by building inside a Docker container. If you mount the root directory of a work tree, but not the “git-common-dir”, git will fail to give you the commit hash.