fatal: No names found, cannot describe anything when using git describe in Cloudflare Pages build

I'm deploying a small app to Cloudflare pages but have run into a problem with my deployment process. I have a build script which uses git to build a changelog. This works great locally, but because Cloudflares build is using a shallow clone of the repo I'm unable to build the changelog. It will fail with the following error: fatal: No names found, cannot describe anything. I've also tried fetching unshallow, but still wasn't able to get the command working. I'm wondering if Cloudflare has a built-in way to clone the entire repo, tags and all, without having to jump through any hoops. I understand Vercel has an ENV variable for exactly this, but would prefer to start with Pages
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?