Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HEAD fix to gitea doctor (#21352) #21751

Merged
merged 2 commits into from Nov 11, 2022
Merged

Add HEAD fix to gitea doctor (#21352) #21751

merged 2 commits into from Nov 11, 2022

Commits on Nov 10, 2022

  1. Add HEAD fix to gitea doctor (#21352)

    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: zeripath <[email protected]>
    Co-authored-by: wxiaoguang <[email protected]>
    3 people authored and Xinyu Zhou committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    f32cc1b View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2022

  1. Configuration menu
    Copy the full SHA
    3010989 View commit details
    Browse the repository at this point in the history