You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
Xinyu Zhou f321cdced7
Add HEAD fix to gitea doctor (#21352) (#21751)
Backport #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: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
activitypub format with gofumpt (#18184) 3 years ago
analyze Simplify `IsVendor` (#19626) 3 years ago
appstate Sync git hooks when config file path changed (#21619) (#21625) 2 years ago
auth Remove legacy `+build:` constraint (#19582) 3 years ago
avatar Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
base Prettify number of issues (#17760) 3 years ago
cache Update go-chi/cache to utilize Ping() (#19719) 3 years ago
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 (#19773) 3 years ago
container Move reaction to models/issues/ (#19264) 3 years ago
context Fix package access for admins and inactive users (#21580) (#21592) 2 years ago
convert Fix 500 on time in timeline API (#21052) (#21057) 3 years ago
csv Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
doctor Add HEAD fix to gitea doctor (#21352) (#21751) 2 years ago
emoji Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
eventsource Stop spurious APIFormat stopwatches logs (#20008) 3 years ago
generate Use base32 for 2FA scratch token (#18384) 3 years ago
git improve code quality (#21464) (#21463) 2 years ago
gitgraph improve code quality (#21464) (#21463) 2 years ago
graceful Ensure that graceful start-up is informed of unused SSH listener (#20877) 3 years ago
hcaptcha
highlight Adjust line detection in highlight.go (#20612) 3 years ago
hostmatcher fix merge (#20819) 3 years ago
httpcache Add Cache-Control header to html and api responses, add no-transform (#20432) (#20459) 3 years ago
httplib refactor httplib (#18338) 3 years ago
indexer Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) (#20186) 3 years ago
json Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 3 years ago
lfs Move some code into models/git (#19879) 3 years ago
log Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
markup Fix missing m.Run() in TestMain (#21341) 2 years ago
metrics format with gofumpt (#18184) 3 years ago
migration Add more checks in migration code (#21011) (#21050) 3 years ago
nosql fix broken insecureskipverify handling in rediss connection uris (#20967) (#21053) 3 years ago
notification Display total commit count in hook message (#21400) (#21481) 2 years ago
options Remove legacy `+build:` constraint (#19582) 3 years ago
packages support binary deploy in npm packages (#21589) 2 years ago
paginator Remove legacy unmaintained packages, refactor to support change default locale (#19308) 3 years ago
password
pprof Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
private Add Goroutine stack inspector to admin/monitor (#19207) 3 years ago
process Set Setpgid on child git processes (#19865) 3 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 4 years ago
public Remove legacy `+build:` constraint (#19582) 3 years ago
queue Fix 64-bit atomic operations on 32-bit machines (#19531) 3 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 4 years ago
references Custom regexp external issues (#17624) 3 years ago
regexplru Custom regexp external issues (#17624) 3 years ago
repository Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
secret Use `CryptoRandomBytes` instead of `CryptoRandomString` (#18439) 3 years ago
session format with gofumpt (#18184) 3 years ago
setting Enable contenthash in filename for dynamic assets (#20813) (#20932) 3 years ago
ssh Ensure that graceful start-up is informed of unused SSH listener (#20877) 3 years ago
storage Add Package Registry (#16510) 3 years ago
structs Display total commit count in hook message (#21400) (#21481) 2 years ago
svg Remove legacy `+build:` constraint (#19582) 3 years ago
sync Use queue instead of memory queue in webhook send service (#19390) 3 years ago
templates Fix generating compare link (#21519) (#21530) 2 years ago
test Move access and repo permission to models/perm/access (#19350) 3 years ago
timeutil Fix `Timestamp.IsZero` (#21593) (#21604) 2 years ago
translation Use en-US as fallback when using other default language (#21200) (#21256) 3 years ago
typesniffer Rework raw file http header logic (#20484) (#20542) 3 years ago
updatechecker format with gofumpt (#18184) 3 years ago
upload Simplify parameter types (#18006) 3 years ago
uri Prevent NPE if gitea uploader fails to open url (#18080) 3 years ago
user
util Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239) 3 years ago
validation Add more checks in migration code (#21011) (#21050) 3 years ago
web Unify repo settings & show better error (#19828) 3 years ago