Bug 241275

Summary: sync-commits.py should force reset to FETCH_HEAD instead
Product: WebKit Reporter: Zhifei Fang <zhifei_fang>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, dewei_zhu, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Zhifei Fang 2022-06-03 12:31:01 PDT
Currently this script is using git pull for syncing remote, it will be break when there is a bad commit or git history rewrite. 

Use git fetch origin main first then git reset --hard FETCH_HEAD to make sure we ignore those bad commits.
Comment 1 Radar WebKit Bug Importer 2022-06-10 12:31:13 PDT
<rdar://problem/94832695>