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

Make chezmoi init user remember the username for http #2561

Closed
davidolrik opened this issue Nov 9, 2022 · 1 comment · Fixed by #2562
Closed

Make chezmoi init user remember the username for http #2561

davidolrik opened this issue Nov 9, 2022 · 1 comment · Fixed by #2562
Labels
enhancement New feature or request

Comments

@davidolrik
Copy link

When doing chezmoi init user, chezmoi will guess the repo using following table taken from the documentation.

Pattern HTTPS Repo today HTTPS Repo proposed
user https://github.com/user/dotfiles.git https://user@github.com/user/dotfiles.git
user/repo https://github.com/user/repo.git https://user@github.com/user/repo.git
site/user/repo https://site/user/repo.git https://user@site/user/repo.git
sr.ht/~user https://git.sr.ht/~user/dotfiles https://user@git.sr.ht/~user/dotfiles
sr.ht/~user/repo https://git.sr.ht/~user/repo https://user@git.sr.ht/~user/repo

I have added a proposed column that also remembers the username in the .git/config thus saving some typing when doing chezmoi update

@twpayne
Copy link
Owner

twpayne commented Nov 11, 2022

Nice suggestion, thank you. Implemented in #2562.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants