Portage 2.3.1 changes the default behavior for git repositories to sync with a depth of 1. If you are using a development tree with emerge --sync, you may want to override this in repos.conf by setting sync-depth = 0.
If you have accidentally converted your development tree into a shallow repository, you can undo the damage by running git fetch --unshallow.