Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9492

Closed
Open
Created Jul 25, 2015 by Administrator@rootOwner

Readme.md availability on project page not updated when changing the default branch

Created by: qcz

In one of our repositories there are two brances, X and Y. X (the default branch) is an older version and does not have a Readme.md file. Y is newer and has one. To make the the Readme file appear on the project page, I changed the default branch to Y, but the Readme was still not visible (the project page still displayed the "This project does not have README yet" message.

Steps to reproduce:

  • Create two branches, one (the default branch) without Readme.md, and an other one with Readme.md
  • Change the default branch to the one with Readme.md

Expected behavior: After changing to the branch with Readme.md, the readme should be displayed on the project page.

Observed behavior: After changing to the branch with Readme.md, the readme still not displayed on the project page.

After a commit has been made to the Y branch, the Readme is displayed on the project page, but this should not be a requirement. Also the reversed process behaves the same way: if we change the default branch from a branch with a Readme to a branch without a Readme, the readme of the previous branch is still displayed.

GitLab version: CE 7.13.1 omnibus

Assignee
Assign to
Time tracking