# rngit pages issue

_General · started by Gwyn on Fri, Sep 25, 2026 8:36 PM_

---

## Original post

**Gwyn** · Fri, Sep 25, 2026 8:36 PM

First, thank you to everyone involved with Reticulum. It's excellent. :)
Second, if this thread is in the wrong category, please let me know and I can report elsewhere.  After reading everyhing I could get my hands on, this seemed the most productive place for this question.

In the process of setting up rngit and importing a repo, I discovered that browsing the repo doesn't work entirely as expected if the default branch isn't 'master'.  I'm working through the pages.py and server.py code, which so far looks like it should be doing the right thing.

I'll post here if I arrive at a fix but this way if others are hitting this we can collaborate.

I'd also like to be able to choose the default branch of new repositories, ideally in the config file globally, and on the command line for individual repos, or even maybe by group, but these are all larger decisions that might have ripple effects.

Anyway, thank you, and happy to test any suggestions others might have.

---

## Reply 1

**bergie** · Sat, Sep 26, 2026 4:34 AM

It is a little bit annoying that we can't change the default branch to `main`, but anyway, you can fix it per-repo by going to the repo's folder on the rngit server and running:

```
git symbolic-ref HEAD refs/heads/main
```

---

## Reply 2

**Gwyn** · Sun, Sep 27, 2026 1:24 AM

True.  And it retains whatever the default branch is on imported repos.

---
