set default value for git rather function returning true