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 +```