From 816f61f091600f2ef126e8f2e8a5840b701f24fe Mon Sep 17 00:00:00 2001 From: Daniel Meiburg Date: Fri, 22 Mar 2024 22:08:52 +0100 Subject: [PATCH] README: add troubleshooting --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 68a3e16..b725d19 100644 --- a/README.md +++ b/README.md @@ -56,3 +56,16 @@ git push dmeiburg If necessary the post-receive hook has to be updated via scp. +## Troubleshooting + +If this setup is recreated there might be an issue with the bare repo on the +server assuming that we are using a `master` branch, when we instead have a +main branch. This issue might present itself, if the post-receive hook outputs +``` +remote: fatal: You are on a branch yet to be born +``` + +We can fix this by editing the HEAD file in the bare repo to contain this line: +``` +ref: refs/heads/main > HEAD +```