Fix behaviour of native GIT helper.