gitview: Fix DeprecationWarning