Update git version for CentOS base dockers (#65703)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/65048
cc jeffdaily sunway513 jithunnair-amd ROCmSupport
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65703
Reviewed By: albanD
Differential Revision: D31245666
Pulled By: janeyx99
fbshipit-source-id: 5431876bf19435eb3fd90a53a3ec94fd66c9210e