Strictly speaking, fetchFromGitHub doesn’t fetch the .git directory in the first place, it just downloads tarballs. You can probably use fetchgit instead of fetchFromGitHub, and set leaveDotGit = true.
2 Likes