-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Git 2.28 no longer permits diff with ... on unrelated branches #12364
Conversation
Signed-off-by: Andrew Thornton <art27@cantab.net>
This comment has been minimized.
This comment has been minimized.
OK try again - I missed checking the stderr properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Backport go-gitea#12364 Signed-off-by: Andrew Thornton <art27@cantab.net>
Backport #12364 Signed-off-by: Andrew Thornton <art27@cantab.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block - patch failed - investigate ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok 🚀 (it had nothing to do with the git 2.28 problem)
Annoyingly git 2.28 now strictly enforces that when doing
git diff base...head
base and head must have a merge-base. Unfortunately this is a breaking change as previously this would just fall back togit diff base head
. Therefore we need to detect this new error and handle it.In preparation for further changes I have also predicted that rev-list base...head may break in future too. Therefore I have attempted to protect against this too.
1.12 will also be affected by this and therefore we should backport these changes if possible.
Closes #12362
Signed-off-by: Andrew Thornton art27@cantab.net