libgit2: some minor cleaning up [ci skip].
libgit2: some minor cleaning up [ci skip].

Fairly/opencor,mirams/opencor,mirams/opencor,mirams/opencor,Fairly/opencor,mirams/opencor,mirams/opencor,Fairly/opencor,Fairly/opencor,Fairly/opencor