ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Git Integration: Property Main Branch (Feature #749)
There should be a property "Main Branch" for Git Repositories. Master is not in any case the branch i want to show in the repository view. In many cases a branch like stable or current release make more sense.
I have seen this Feature on bitbucket and like it.
$ cat packed-refs # pack-refs with: peeled 1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127 refs/heads/latin-1-path-encoding 83ca5fd546063a3c7dc2e568ba3355661a9e2b2c refs/heads/master 67e7792ce20ccae2e4bb73eed09bb397819c8834 refs/heads/test-latin-1 fba357b886984ee71185ad2065e65fc0417d9b92 refs/heads/test_branch 7234cb2750b63f47bff735edc50a1c0a433c2518 refs/tags/tag00.lightweight 1399e2fe59e43d76a15ab922419980d8fa8c9143 refs/tags/tag01.annotated ^899a15dba03a3b350b89c3f537e4bbe02a03cdc9
Okay, so I'm thinking about updating the default_branch function so that it calls scm_cmd to run `git symbolic-ref HEAD`. If head points to a branch, this should return something like /refs/heads/master. If head points to a specific SHA then git will return an error so we can fall back to the existing approach.
This has the benefit that I don't have to add a specific setting to the interface for this, but it does require that the user has write access to the HEAD file in order to change the default.
You can find my proposed change at https://github.com/chiliproject/chiliproject/pull/138/files
- Target version set to 2.6.0
- Status changed from Open to Ready for review