Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22633

Creating a README or gitignore on a new repo that has its main branch write restricted does not create the README or gitignore

XMLWordPrintable

      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

      1. Create a branch restriction at the project level for the main branch
        1. “Only specific people or groups have write access” → “Nobody has write access”
      1. Create a new repository in the project
        1. Specify main as the default branch name
        1. Select either “Include a README?” or “Include .gitignore?”
      1. You will be redirected to the new repository
      1. 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.

              Unassigned Unassigned
              bpearson@atlassian.com Brandy Pearson
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: