Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap Version unable to clone over HTTPS due to being "Unable to find remote helper for 'https'" #5

Open
Unkn0wnCat opened this issue Apr 9, 2021 · 5 comments

Comments

@Unkn0wnCat
Copy link

Describe the bug

When using the CLI from Snap latest and using HTTPS, cloning repositories fails with the error "fatal: Unable to find remote helper for 'https'".

Version:
gh version 1.8.1-51-g37ecdb93 (2021-04-09)
https://github.com/cli/cli/releases/latest

OS:
Name: Manjaro Linux
Version: 21.0 (Ornara)
Codename: Ornara

Steps to reproduce the behavior

  1. Download gh using snap install --edge gh
  2. Setup gh using gh auth login choosing HTTPS as the protocol
  3. Clone any repo e.g. gh repo clone Unkn0wnCat/Unkn0wnCat.net

Expected vs actual behavior

The CLI is supposed to clone the repo into a local directory, but instead it errors out due to not finding a remote helper for https.

Logs

$ gh repo clone Unkn0wnCat/Unkn0wnCat.net
Cloning into 'Unkn0wnCat.net'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
exit status 128
@tarun
Copy link

tarun commented Apr 29, 2021

still facing same issue on Ubuntu 21.04

gh repo clone ***
Cloning into '***'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
exit status 128

t:~/code$ gh version
gh version 1.9.2-32-g00df983d (2021-04-29)
https://github.com/cli/cli/releases/latest

@allenc12
Copy link

allenc12 commented Jun 8, 2021

Also facing the same error on Ubuntu 21.04 with version 1.10.2-15

$ gh repo clone opencv/opencv_contrib
Cloning into 'opencv_contrib'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
exit status 128
$ gh version
gh version 1.10.2-15-gacbe28a8 (2021-06-02)

casperdcl pushed a commit that referenced this issue Jun 30, 2021
Added parseArgs() function, beginning to work on parseFlags() functions
@hpbenton
Copy link

I kept getting the same on the snap or apt-get package -

$ gh repo clone an_r-package  
2021/07/28 00:10:06.266593 cmd_run.go:1011: WARNING: cannot start document portal: dial unix /run/user/1000/bus: connect: permission denied
Cloning into 'an_r-package'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
exit status 128

I was able to get this working by doing the

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh

https://github.com/cli/cli/blob/trunk/docs/install_linux.md

which gave the same version 1.13.1. The snap package and the default ubuntu package seems to be the same.
Hope this helps people.

Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

@linn-nay77
Copy link

I kept getting the same on the snap or apt-get package -

$ gh repo clone an_r-package  
2021/07/28 00:10:06.266593 cmd_run.go:1011: WARNING: cannot start document portal: dial unix /run/user/1000/bus: connect: permission denied
Cloning into 'an_r-package'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
exit status 128

I was able to get this working by doing the

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh

https://github.com/cli/cli/blob/trunk/docs/install_linux.md

which gave the same version 1.13.1. The snap package and the default ubuntu package seems to be the same. Hope this helps people.

Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal

I try to follow your instruction still can't fixed yet

@CristianITX
Copy link

Hi. I can solve this problem with an easy solution:
imagen

In case this can helps anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants