gitphp-tuleap

Clone or download

Read-only

request #10196: Cannot display the blob of a file through the Git web viewer if there is no master branch

Reproduction steps: 1. Create a a new Git repo 2. Commit something in a branch that is not master and publish it 3. Try to access the blob of a file of your commit The issue is caused by fact that HEAD references refs/head/master in the repo on the server. Since we have not pushed a master branch, refs/head/master does not exist thus causing the fatal error. The fix does not really the root cause. To do that, Tuleap should probably set the default branch to first pushed branch and let the user changes the default branch in the administration of the repo. That said, the proposed contribution still make sense for the cases where you work on branch that does not have an common ancestor with the default branch (merge of two seperate repositories for example).

Modified Files

Name
M gitphp-tuleap.spec +4 −1 Go to diff View file
M src/templates/blob.tpl +1 −1 Go to diff View file