import configurable git protocol changes from NQP

Fixes RT #121072