Fixed in merge to master branch, will be included in the next git plugin 4.0.0 beta
Fixed in Git plugin 4.0.0-beta10 released July 5, 2019.