README: add troubleshooting

This commit is contained in:
Daniel Meiburg 2024-03-22 22:08:52 +01:00
parent 8e0baf3a84
commit 816f61f091
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
1 changed files with 13 additions and 0 deletions

View File

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