Fixing deprecation warnings in cgit module

Change-Id: Ie5ef97fea66c33abfbd073a15dd3ae200517c3ee
Merge "Fixing deprecation warnings in cgit module"