Yesterday my pullrequest jobs failed with the following output:
11:07:41 > git rev-parse origin/${sha1}^{commit} 11:07:41 > git rev-parse ${sha1}^{co
I came across the same issue and spent 4 hours into it but finally got it resolved.
In my case, error was because of wrong Git exe. Inside Jenkins, while setting Git exe path on windows, set the path under cmd folder
In my case it was C:\Program Files\Git\cmd\git.exe
It resolved my issue.