filter commit_hash to remove nil results