# Last modified .gitinfo from git-submodule

**URL:** <https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912>\
**Category:** support\
**Created:** [April 20, 2020, 11:44pm UTC](https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912 "2020-04-20T23:44:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lalitha](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Lalitha](https://discourse.gohugo.io/u/Lalitha)\
**Post date:** [April 20, 2020, 11:44pm UTC](https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912/1 "2020-04-20T23:44:41Z")

</div>

```auto
/hugo_website
|--.git
|--.gitmodules
|-- website-content
    |--content
        | `--.git
|-- layouts/index.html
|--...etc (other files)

```

My content comes from another git submodules.  
I am trying to use GitInfo in index.html. It is always nil.

Note: i added `enableGitInfo = true` in my config.toml

My use case is to get last-modified date of the content files(.md files). Appreciate your response. Thanks.

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [April 21, 2020, 12:17am UTC](https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912/2 "2020-04-21T00:17:14Z")

</div>

That was not a support ticket, and is very old. Please read [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132) and state your question. 🙂

---

<div class="post-metadata">

**Author:** ![Lalitha](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Lalitha](https://discourse.gohugo.io/u/Lalitha)\
**Post date:** [April 21, 2020, 2:55pm UTC](https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912/3 "2020-04-21T14:55:37Z")

</div>

Thanks @maiki. I have editied my post and added additional information.

---

<div class="post-metadata">

**Author:** ![Lalitha](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@Lalitha](https://discourse.gohugo.io/u/Lalitha)\
**Post date:** [April 22, 2020, 4:03pm UTC](https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912/4 "2020-04-22T16:03:44Z")

</div>

@pointyfar, @bep, @davidsneighbour Any thoughts or pointers?  
I think this PR is close to my use-case. [https://github.com/gohugoio/hugo/issues/5533](https://github.com/gohugoio/hugo/issues/5533)

---

<div class="post-metadata">

**Author:** ![mulomulo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mulomulo/32/11641_2.png) [@mulomulo](https://discourse.gohugo.io/u/mulomulo)\
**Post date:** [October 27, 2020, 7:42am UTC](https://discourse.gohugo.io/t/last-modified-gitinfo-from-git-submodule/24912/5 "2020-10-27T07:42:27Z")

</div>

Has anyone worked this out yet? Getting .GitInfo from files in a submodule is kind of essential.
