replace #24868 just a patch to fix #24824 in v1.19.4 The reference name of commits when synchronizing should also has prefix like refs/heads/<branch-name>.