-
Bug
-
Resolution: Timed out
-
Low
-
2
-
Severity 3 - Minor
-
113
-
Issue Summary
Creating a README or gitignore on a new repo that has its main branch write restricted does not create the README or gitignore.
Steps to Reproduce
- Create a branch restriction at the project level for the main branch
-
- “Only specific people or groups have write access” → “Nobody has write access”
- Create a new repository in the project
-
- Specify main as the default branch name
-
- Select either “Include a README?” or “Include .gitignore?”
- You will be redirected to the new repository
- Expected Results
Expected Results
The repo has 1 branch, main, and the .gitignore and/or README exists.
Actual Results
The new repository has no branches, nor does it have a .gitignore or README (either would require a branch to have been created).
Workaround
An admin who does have write access to the restricted branch must create the branch in the repo, and make an initial commit.