0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 15:24:58 +01:00
gitea/modules
Clar Fon 42b803554c
Add HEAD fix to gitea doctor (#21352)
Due to a bug in presumably an older version of Gitea, multiple of my
repositories still have their HEADs pointing to a `master` branch while
the default branch on the UI is listed as `main`. This adds a `gitea
doctor` command that will fix all of the HEAD references for repos when
they're not synchronized with the default branch in the DB.

This will help with cloning to ensure that git automatically checks out
the right branch, instead of a nonexistent one.

Note: I'm not sure if I actually need to do more other than add a file
here. Will try testing this out on my server soon.

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-10-12 12:17:55 -04:00
..
activitypub
analyze
appstate
auth
avatar
base Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
cache
charset
container Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
context Redirect to new repository owner (#21398) 2022-10-11 19:54:44 +08:00
convert Use Name instead of DisplayName in LFS Lock (#21415) 2022-10-11 21:03:15 -04:00
csv
doctor Add HEAD fix to gitea doctor (#21352) 2022-10-12 12:17:55 -04:00
emoji
eventsource
generate
git Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer
issue/template Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
json
lfs
log
markup Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
mcaptcha
metrics
migration
mirror
nosql
notification Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
options
packages npm package registry support for bin (#21372) 2022-10-08 13:24:44 +08:00
paginator
password
pprof
private log real ip of requests from ssh (#21216) 2022-10-11 16:57:37 +08:00
process
proxy
proxyprotocol
public Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
queue Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
recaptcha
references
regexplru
repository Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
secret
session
setting Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
sitemap
ssh
storage Save files in local storage as umask (#21198) 2022-09-24 21:04:14 +08:00
structs Make external issue tracker regexp configurable via API (#21338) 2022-10-07 20:49:30 +08:00
svg
sync Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
templates Add nicer error handling on template compile errors (#21350) 2022-10-07 22:02:24 +01:00
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
watcher
web