nix-exec: make git less heavyweight

cc @shlevy