Git log does not display submodule changes

I have a commit on master, hash 6877146, which updates the submodule.

$ git show 6877146 commit 6877146f1781bfbd4ec3ae2a27121a606f5f688e Author: [snip] Date: Wed Feb 22 16:10:20 2012 +0000 updating potatobase diff --git a/potatobase b/potatobase index 5877e2c..b77ba62 160000 --- a/potatobase +++ b/potatobase @@ -1 +1 @@ -Subproject commit 5877e2c2d82645fa44f121884291ee48cf24584d +Subproject commit b77ba624d6a1c5e62d434ad2d06383604aeab431 

This commit is on the main branch, which I currently checked:

 $ git branch -a --contains 6877146 * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/ticket-1479-refactor-blade-json-functions 

However, running git log on a submodule does not show commit:

 $ git log potatobase | grep 6877146 $ 

If I explicitly verify this commit, it is in the log:

 $ git checkout 6877146 $ git log potatobase | grep 6877146 commit 6877146f1781bfbd4ec3ae2a27121a606f5f688e 

Why is this commit not showing in the log when I checked the wizard? He has already merged with the master:

 $ git checkout master $ git merge 6877146 Already up-to-date. $ 
+6
source share
1 answer

To activate update of a submodule simply changes the revision git will check when starting / updating a submodule. The commit identifier of this commit is in no way associated with the commit identifiers of the submodules themselves.

+2
source

Source: https://habr.com/ru/post/909113/


All Articles