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

GitHub rejects clones using user:pass:?@host construction #286

Open
mcint opened this issue May 20, 2024 · 3 comments
Open

GitHub rejects clones using user:pass:?@host construction #286

mcint opened this issue May 20, 2024 · 3 comments

Comments

@mcint
Copy link

mcint commented May 20, 2024

Notably it also seems that there's a short lag during which previous failures will prevent anonymous cloning over http, 1-5 minutes.

My process

I sources .tmux.conf, tried to run plugin-install. It reported nothing, and cloned nothing. (It should write error logs into its ~/.tmux / $XDG_CONFIG_HOME/tmux.

I looked at the tpm setup file, listed key binds to find the install-plugins command, and tmux show @plugin to confirm its input. Expected plugins names were present. I run the commands to install plugins and viewed the scripts, eventually calling them directly with bash tracing on bash -x .../install_plugins[.sh] both variants, and copied the git command constructed and used.

ubuntu@host1:~/.tmux/plugins$ git clone --single-branch --recursive https://git::@github.com/tmux-plugins/tumx-resurrect
Cloning into 'tumx-resurrect'...
remote: Support for password authentication was removed on August 13, 2021.remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/tmux-plugins/tumx-resurrect/'
@RossBarnie
Copy link

As the error says, GitHub removed support for basic authentication so there's nothing TPM can do about that. If you want TPM to manage updates to a private repo, I believe you should be able to clone the private repo manually in the plugins directory and TPM will be able to pull (ie update) the repo based on the authentication method you chose when cloning.

@nyrghzef
Copy link

Why is this still open?

@RossBarnie
Copy link

@nyrghzef The last code update to this repo was almost 18 months ago and it's relatively unmaintained.

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

No branches or pull requests

3 participants