fix git diff issue (#63408)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/60111, ideally we should merge this before https://github.com/pytorch/pytorch/issues/63360 but we can also test this with https://github.com/pytorch/pytorch/issues/63360 easily.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63408
Test Plan:
- This is conform working with local test.sh run by setting PR_NUMBER
- should be validated by GHA CI as well
Concern:
- currently GHA CI is running into proxy 403 rate-limit exceeded issue consistently. However the worst case is not generating any git diff files, which is going to be exactly the same as current behavior.
- depends on https://github.com/pytorch/pytorch/issues/63770.
Reviewed By: driazati, janeyx99
Differential Revision: D30489355
Pulled By: walterddr
fbshipit-source-id: a638b7ae5820f29a7aca6cc40ff390ab253cb174
Author
Rong Rong (AI Infra)