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
Changing the default git branch from "main" to "master" breaks SCM #1467
Comments
I can reproduce this. Thank you very much for the report! |
pfeuffer
added a commit
that referenced
this issue
Dec 7, 2020
Fixes issue #1467 where initialization fails when master is set as default branch.
9 tasks
pfeuffer
added a commit
that referenced
this issue
Dec 7, 2020
Fixes issue #1467 where initialization fails when master is set as default branch.
pfeuffer
added a commit
that referenced
this issue
Dec 7, 2020
Fixes issue #1467 where initialization fails when master is set as default branch.
sdorra
pushed a commit
that referenced
this issue
Dec 7, 2020
Fixes issue #1467 where initialization fails when master is set as default branch.
Hi @hackman , we released a fixed version 2.11.1. Here the bug should be fixed that you cannot initialize a repository when the default branch is set to master. I've created a new issue in the review plugin repository for the useless link in the push response (scm-manager/scm-review-plugin#112). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
I wanted to have all my git repos with "master" as default branch, so I went to the git setting page and replaced "main" with "master".
As soon as I changed that I tested a creation of a repository with the initialize repo option selected.
When I click create I'm presented with this error:
Even if I create the repo without initializing it, I can't create the master branch from the interface.
If I push the new master branch from my PC, I can now use the repo, however, on every push to the "master" branch, now I'm presented with:
Bug Report
Describe how to reproduce the bug
Go to Administration -> Settings -> Git, then change the "Default Branch" from main to master.
Now try to create a git repo with "Initialize repository" selected.
For the second problem, after you have set the Default Branch to master, create a git repository without the "Initialize repository" option. Then create a local repository on your PC, with default branch "master". Then add and commit a file in your local repo. Finally push to the SCM repo. You will be presented with the following:
If you add more commits and push, you will be again asked to create a pull request for your "master" branch.
Which operating system, browser and versions do you use?
Linux, Firefox
SCM-Manager 2.10.0
The text was updated successfully, but these errors were encountered: