The latest version of gitg that comes with PPA of Ubuntu 22.04 does not support shallow clones: https://gitlab.gnome.org/GNOME/gitg/-/issues/249
As I’m cloning the liferay repos with --depth=50000
(to limit the history) that’s an issue to me. I've been using 0.2.7-3 for 10 years due to it's been more stable with large repos like Liferay’s and it has worked well even with shallow clones so I wanted to install it back.
- Download https://launchpad.net/ubuntu/utopic/amd64/gitg/0.2.7-3
sudo dpkg -i sudo dpkg -i gitg_0.2.7-3_amd64.deb
sudo apt-mark hold gitg
sudo apt-get install libgdk-pixbuf2.0-0 libgdk-pixbuf-xlib-2.0-0 dbus-x11 libgtksourceview-3.0-1 libgtksourceview-3.0-common
Just in case, run also sudo apt-get install -f
Hope this helps others. :-)