Backport #35552 by @lunny Use full reference name in the git command to avoid ambiguity. Fix #35470 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Backport #35552 by @lunny Use full reference name in the git command to avoid ambiguity. Fix #35470 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>