1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

repo initでのエラー

Last updated at Posted at 2020-06-10

事象

$ repo init
Downloading Repo source from https://gerrit.googlesource.com/git-repo
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error unknown url type: https
fatal: cloning the git-repo repository failed, will remove '.repo/repo' 

原因(上記事象が出たときの要確認項目)

SSL関連の設定が悪さをしている可能性がある。

repoのコード(python)に以下を埋め込んだら、うまくいった。

import ssl
ssl._create_default_https_context = ssl._create_unverified_context
$ repo init
Downloading Repo source from https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (11/11)
remote: Total 11 (delta 2), reused 11 (delta 2)
Unpacking objects: 100% (11/11), done.
...
1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?