# Lastmod from GitInfo shows correctly with hugo serve locally, but is overwritten on Cloudflare pages deploy

**URL:** <https://discourse.gohugo.io/t/lastmod-from-gitinfo-shows-correctly-with-hugo-serve-locally-but-is-overwritten-on-cloudflare-pages-deploy/46009>\
**Category:** support\
**Created:** [September 1, 2023, 2:14pm UTC](https://discourse.gohugo.io/t/lastmod-from-gitinfo-shows-correctly-with-hugo-serve-locally-but-is-overwritten-on-cloudflare-pages-deploy/46009 "2023-09-01T14:14:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [September 1, 2023, 2:21pm UTC](https://discourse.gohugo.io/t/lastmod-from-gitinfo-shows-correctly-with-hugo-serve-locally-but-is-overwritten-on-cloudflare-pages-deploy/46009/2 "2023-09-01T14:21:50Z")

</div>

> [@bingobongo](#):
>
> What would you suggest

I suspect that Cloudflare performs a shallow clone.

Check out [this article](https://www.brycewray.com/posts/2022/06/get-good-git-info-hugo/) by @bwintx. For Cloudflare pages he recommends:

```plaintext
git fetch --unshallow && hugo --whatever --flags --you --need

```

---

_[View the full topic](https://discourse.gohugo.io/t/lastmod-from-gitinfo-shows-correctly-with-hugo-serve-locally-but-is-overwritten-on-cloudflare-pages-deploy/46009)._
