avoid override gitref in config file with None
Merge pull request #92 from linzhp/gitref

Avoid override gitref in config file with None