Bug 241275 - sync-commits.py should force reset to FETCH_HEAD instead
Summary: sync-commits.py should force reset to FETCH_HEAD instead
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-03 12:31 PDT by Zhifei Fang
Modified: 2022-06-12 11:37 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>