Change default branch in gitolite-admin?

152 views
Skip to first unread message

Dunnigan (US), Terrence J

unread,
Aug 3, 2020, 10:01:15 PM8/3/20
to gito...@googlegroups.com

Hi,

 

How can I change the name of the default branch in the gitolite-admin repo? Instead of ‘master’ I’d like to use a different branch name.

 

Thanks,

 

Terry

Sitaram Chamarty

unread,
Aug 4, 2020, 10:35:54 AM8/4/20
to Dunnigan (US), Terrence J, gito...@googlegroups.com
On Tue, Aug 04, 2020 at 02:01:08AM +0000, Dunnigan (US), Terrence J wrote:
> Hi,
>
> How can I change the name of the default branch in the gitolite-admin repo? Instead of 'master' I'd like to use a different branch name.

You'd have to patch lib/Gitolite/Hooks/PostUpdate.pm. It's a
trivial change, but it should work fine. Please test it out.

rgds
sitaram
Reply all
Reply to author
Forward
0 new messages