builtins.fetchGit error, not a tree object

The commit must be reachable from the given ref (default master); see also fetchGit fails with a not very helpful error message when fetching a revision not in the remote's HEAD · Issue #2431 · NixOS/nix · GitHub.