fix issue when git rev-list errors
use consistent conditional style