Fix duplicate commit logic in syncbranches (#75384)
Summary:
Regression introduced by caa403083b2f558d1525dddaebcd5909e69277ad
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75384
Reviewed By: osalpekar
Differential Revision: D35451233
Pulled By: malfet
fbshipit-source-id: bbe81d2138a14337e1702f53a609c03c1fef3e91
(cherry picked from commit 7129435c86722d672cf749017370d2738ac3b8f8)