Revert "use `git rev-parse` to get tag canonical revision."

This reverts commit 9c873e1c56f1147a8fcdd01b804f744deebb53f6.