Last modified: 2014-07-25 00:16:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57654, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55654 - Recursive clone over ssh uses https for submodules
Recursive clone over ssh uses https for submodules
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-12 12:01 UTC by Maarten Dammers
Modified: 2014-07-25 00:16 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten Dammers 2013-10-12 12:01:18 UTC
<~/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?service=git-upload-pack
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?
Comment 1 Merlijn van Deen (test) 2013-10-12 12:21:47 UTC
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://?
Comment 2 John Mark Vandenberg 2014-07-25 00:16:01 UTC
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'

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links