This leads to inconsistent results between local builds and Hydra. Also Nix is not a general purpose language, we shouldn't be parsing .git from inside Nix code.