#13486 closed enhancement (duplicate)
Allow to set the default branch in repo configuration
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | plugin/git | Version: | 1.5.3 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hello, sorry if I missed this in the documentation. I found no way to set which branch should be used by default when accessing the "source browser" tab.
This adds up to the effect of #10704: in my case the default is to show an internal commit that is not relevant at all here: https://pulkomandy.tk/projects/avrstuff/browser/avrstuff and I have to manually switch to the main branch which leads me here: https://pulkomandy.tk/projects/avrstuff/browser/avrstuff/?rev=7d84448b6037c7741101861dd6ea66c12c1108c2
I see no way to tell Trac that by default it should show the last commit from the main branch.
Attachments (0)
Change History (3)
comment:1 by , 2 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 2 years ago
From the linked tickets I found this:
https://github.com/hvr/trac-git-plugin/pull/13/files
I have applied this patch locally and it works for me. No need to add extra configuration options then, it uses the correct default branch from the git repository.
comment:3 by , 2 years ago
I don't think we should change get_youngest_rev()
to solve this ticket. We expect get_youngest_rev()
returns youngest rev. The behavior shouldn't be changed.
Duplicate of #10136. I agree it would be a good feature.