https://bugzilla.wikimedia.org/show_bug.cgi?id=55654
Web browser: --- Bug ID: 55654 Summary: Recursive clone over ssh fails Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Classification: Unclassified Mobile Platform: ---
<~/pywikibot>git clone --recursive ssh://multichill@gerrit.wikimedia.org:29418/pywikibot/core.git Cloning into 'core'... Warning: Permanently added the RSA host key for IP address '[208.80.154.81]:29418' to the list of known hosts. Enter passphrase for key 'key': remote: Counting objects: 10842, done remote: Finding sources: 100% (10842/10842) remote: Getting sizes: 100% (1495/1495) remote: Compressing objects: 100% (2292733/2292733) remote: Total 10842 (delta 7190), reused 10548 (delta 7165) Receiving objects: 100% (10842/10842), 23.42 MiB | 326 KiB/s, done. Resolving deltas: 100% (7337/7337), done. Submodule 'externals/httplib2' (https://gerrit.wikimedia.org/r/p/pywikibot/externals/httplib2.git) registered for path 'externals/httplib2' Submodule 'i18n' (https://gerrit.wikimedia.org/r/p/pywikibot/i18n.git) registered for path 'scripts/i18n' Cloning into 'externals/httplib2'... error: SSL certificate problem: self signed certificate in certificate chain while accessing https://gerrit.wikimedia.org/r/p/pywikibot/externals/httplib2.git/info/refs?... fatal: HTTP request failed Clone of 'https://gerrit.wikimedia.org/r/p/pywikibot/externals/httplib2.git' into submodule path 'externals/httplib2' failed
I'm cloning over ssh. Why are the submodules being loaded over https?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55654
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl
--- Comment #1 from Merlijn van Deen valhallasw@arctus.nl --- Basically, there are two options: 1) an absolute externals path, which always overrules the initial clone url -- this can be a problem for people who cannot clone over https. 2) a relative externals path, which breaks for people cloning from e.g. github, where the urls are not /pywikibot/externals/httplib2 but pywikibot-externals-httplib2
Would it help if we switch to git:// instead of https://?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55654
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com
https://bugzilla.wikimedia.org/show_bug.cgi?id=55654
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Summary|Recursive clone over ssh |Recursive clone over ssh |fails |uses https for submodules
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- While it cloned the submodules over https, the clone recursive worked for me, so I have updated the bug summary to reflect this.
The "error: SSL certificate problem: self signed certificate in certificate chain while accessing ..." doesnt appear in my output, so something has radically changed since October 2013, which is probably masking this bug. Either the certificate has been changed, or this problem only existed in an earlier git version.
$ git clone --recursive ssh://jayvdb@gerrit.wikimedia.org:29418/pywikibot/core.git Cloning into 'core'... remote: Counting objects: 2792, done remote: Finding sources: 100% (2373/2373) remote: Getting sizes: 100% (710/710) remote: Compressing objects: 100% (5777484/5777484) remote: Total 16923 (delta 1184), reused 16381 (delta 1136) Receiving objects: 100% (16923/16923), 27.47 MiB | 1.12 MiB/s, done. Resolving deltas: 100% (11100/11100), done. Checking connectivity... done. Submodule 'externals/httplib2' (https://gerrit.wikimedia.org/r/p/pywikibot/externals/httplib2.git) registered for path 'externals/httplib2' Submodule 'i18n' (https://gerrit.wikimedia.org/r/p/pywikibot/i18n.git) registered for path 'scripts/i18n' Cloning into 'externals/httplib2'... remote: Counting objects: 1035, done remote: Finding sources: 100% (202/202) remote: Getting sizes: 100% (29/29) remote: Compressing objects: 100% (306895/306895) remote: Total 1902 (delta 34), reused 1887 (delta 32) Receiving objects: 100% (1902/1902), 3.88 MiB | 233.00 KiB/s, done. Resolving deltas: 100% (946/946), done. Checking connectivity... done. Submodule path 'externals/httplib2': checked out '5dc145682eb726bd54eaf7e9f940844ca234db71' Cloning into 'scripts/i18n'... remote: Counting objects: 192, done remote: Finding sources: 100% (171/171) remote: Getting sizes: 100% (52/52) remote: Compressing objects: 100% (1291342/1291342) remote: Total 2802 (delta 113), reused 2759 (delta 110) Receiving objects: 100% (2802/2802), 12.82 MiB | 664.00 KiB/s, done. Resolving deltas: 100% (2216/2216), done. Checking connectivity... done. Submodule path 'scripts/i18n': checked out 'ab431d98501bc229c933ee931ce0d7f2c1e2d46c'
pywikipedia-bugs@lists.wikimedia.org