Edgewall Software
Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#13486 closed enhancement (duplicate)

Allow to set the default branch in repo configuration

Reported by: pulkomandy@… 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 Ryan J Ollos, 2 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #10136. I agree it would be a good feature.

comment:2 by anonymous, 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 Jun Omae, 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.