avoid override gitref in config file with None

@andygrunwald Please review
@maelick FYI