The following git command…
git show -s --pretty=format:%T master
…will emit the SHA1 of the current head of master.
However the following MSBuild task only produces a literal ‘T’
<Exec Command="git show -s --pretty=format:%T master" />
What do I need to change, to emit the genuine SHA1?
So apparently the trick is to double escape the % sign.
ie
I’m not really sure why this works though, so I’d appreciate comments on why this might be.