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

Specify git init main branch #241

Open
SultanICQ opened this issue Jul 4, 2023 · 1 comment
Open

Specify git init main branch #241

SultanICQ opened this issue Jul 4, 2023 · 1 comment

Comments

@SultanICQ
Copy link

When the installer execute the git init, it is not specifying the name of the branch.

In my case my default branch is still "master" so when I follow the git remote steps it fails because the documentation talks about "main" branch and my branch name is "master".

I think this line:

git init 2>&1 | _log "Initializing repository"

should be:

git init --initial-branch="$DOTLY_BRANCH" 2>&1 | _log "Initializing repository"

@gtrabanco
Copy link
Contributor

By default git init is using main currently and you propose to create a custom branch. But the installer is for brand new dotfiles which means that your dotfiles does not exists before.

DOTLY_BRANCH exists as env and it is for Dotly submodule not is intendeed for that use case, if you want to modify this behaviour and send a PR that var should have a different name like, as example, DOTFILES_BRANCH.

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

2 participants