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
Pull requests don't work if branch name is 7 characters or longer #3743
Comments
I suspect this is related to how the SHA's are shortened when comparing two commits instead of two branches. |
Ok, it looks like it's any branch name that's 7 characters or longer not just the base. Sorry to keep updating my own ticket, I'm trying to figure this out and I'm hoping someone who has a better understanding of this project will know how to fix it. |
@unknwon that PR fixed it for me ^^ but I don't know enough about the project to know if that might break something else. |
I test your PR too. you have change too many lines. Only lines 593 and 591 (see my review) must be fixed. |
Fixed by #3851. |
[x]
):Description
We'd like to use gogs for a Puppet control-repo. This usually means making the default branch "production" instead of "master".
It seems that any name beginning with the string "product" triggers this issue. When I use any other name for the base branch, the new Pull Request dialog shows drop down menus to select the branches. When I use "product", it doesn't show drop down menus and only shows links to the product branch.
Attempting to track this down, I tried some protected words from the code, and the word "present" also triggered the bug. I was able to repro with any branch name that is 7 characters or longer.
This is currently a blocker for us.
Edit: Narrowed down issue to branches 7 characters or longer
The text was updated successfully, but these errors were encountered: