Bug 201658

Summary: setup-git-clone is using http not https
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: alancoon.bugzilla, commit-queue, ews-watchlist, glenn, kocsen_chung, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Dean Jackson 2019-09-10 14:40:18 PDT
setup-git-clone is using http not https
Comment 1 Dean Jackson 2019-09-10 14:41:49 PDT
Created attachment 378496 [details]
Patch
Comment 2 WebKit Commit Bot 2019-09-10 21:16:02 PDT
Comment on attachment 378496 [details]
Patch

Clearing flags on attachment: 378496

Committed r249752: <https://trac.webkit.org/changeset/249752>
Comment 3 WebKit Commit Bot 2019-09-10 21:16:04 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2019-09-10 21:17:19 PDT
<rdar://problem/55248896>
Comment 5 Kocsen Chung 2019-10-09 17:27:18 PDT
This is not right. We can only do this if the git clone was also done from the HTTPS git-svn mirror. 


The longer explanation is that each commit message on a git-svn mirror has the annotation of the URL for the SVN commit. You may have seen this as "git-svn-id: https://svn.webkit.org/repository/webkit/trunk@r1234". Since this is embedded in the commit message and the commit message takes part in creating the hash, this makes it so that the git-svn hash of a particular revision <r1> have different hashes on the HTTP git repo, vs the HTTPS git repo. 

Long winded way of saying this change is currently broken given the current docs, which have us clone the http version of the git repo.
Comment 6 Sam Weinig 2019-10-13 17:03:12 PDT
(In reply to Kocsen Chung from comment #5)
> This is not right. We can only do this if the git clone was also done from
> the HTTPS git-svn mirror. 
> 
> 
> The longer explanation is that each commit message on a git-svn mirror has
> the annotation of the URL for the SVN commit. You may have seen this as
> "git-svn-id: https://svn.webkit.org/repository/webkit/trunk@r1234". Since
> this is embedded in the commit message and the commit message takes part in
> creating the hash, this makes it so that the git-svn hash of a particular
> revision <r1> have different hashes on the HTTP git repo, vs the HTTPS git
> repo. 
> 
> Long winded way of saying this change is currently broken given the current
> docs, which have us clone the http version of the git repo.

Which doc is that? Can we update the doc to clone the https version of the git repo too?
Comment 7 Kocsen Chung 2019-10-21 10:58:43 PDT
Currently the docs that outline this are: 

- https://webkit.org/getting-the-code/
- https://trac.webkit.org/wiki/UsingGitWithWebKit

I'll look into editing those instead of reverting this change.
Comment 8 Kocsen Chung 2019-10-21 11:15:43 PDT
Requested change for #1.
Changed #2 here: https://trac.webkit.org/wiki/UsingGitWithWebKit?action=diff&version=95
Comment 9 Alan Coon 2021-03-11 09:40:26 PST
*** Bug 201206 has been marked as a duplicate of this bug. ***