adapt to git 2.0 behavior