Bug 225460

Summary: [webkit-patch] setup-git-clone uses master instead of main
Product: WebKit Reporter: Antoine Quint <graouts>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, dewei_zhu, ews-watchlist, glenn, jbedard, slewis, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Antoine Quint 2021-05-06 09:23:17 PDT
Steps to reproduce:

1. git clone git://github.com/WebKit/WebKit.git
2. cd WebKit
3. Tools/Scripts/webkit-patch setup-git-clone

… wait a bit or kill it eventually (see bug 225459),

4. write some code
5. Tools/Scripts/webkit-patch upload

At this stage I get this error:

    WebKit > webkit-patch upload
    Failed to run "['git', 'merge-base', u'refs/remotes/origin/master', 'HEAD']" exit_code: 1 cwd: /Users/antoine/Downloads/WebKit

Indeed, if I run `git branch -a` I see an entry that says `remotes/origin/master`. This appears while `Tools/Scripts/webkit-patch setup-git-clone` is running.
Comment 1 Jonathan Bedard 2021-05-06 11:10:22 PDT
*** Bug 225459 has been marked as a duplicate of this bug. ***
Comment 2 Radar WebKit Bug Importer 2021-05-06 11:11:30 PDT
<rdar://problem/77616439>
Comment 3 Jonathan Bedard 2021-05-06 11:16:17 PDT
Created attachment 427907 [details]
Patch
Comment 4 EWS 2021-05-06 13:42:51 PDT
Committed r277115 (237413@main): <https://commits.webkit.org/237413@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 427907 [details].