README: add troubleshooting
This commit is contained in:
parent
8e0baf3a84
commit
816f61f091
13
README.md
13
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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue