Bug with "git rebase" when format.useAutoBase is set
- From
- Christian Biesinger <cbiesinger@google.com>
- Date
- Nov 26, 2019, 20:50 UTC
- Message-ID
- <CAPTJ0XEcMJEwPBEL4akncJ_A5XwyQyKL95fpf2tC0rNXJK65Og@mail.gmail.com>
Hello!
I recently tried setting the format.useAutoBase setting to true so that patches I send with git format-patch identify their base commit.
Unfortunately this seems to break "git rebase" completely, I always get the following error. Is this expected? This is with git version 2.24.0.432.g9d3f5f5b63-goog
$ git rebase --onto foo 4a7dabea39556979cbf6bcbdd98a9413ce129fd0 First, rewinding head to replay your work on top of it... fatal: failed to get upstream, if you want to record base commit automatically, please use git branch --set-upstream-to to track a remote branch. Or you could specify base commit by --base=<base-commit-id> manually error: git encountered an error while preparing the patches to replay these revisions:
4a7dabea39556979cbf6bcbdd98a9413ce129fd0..12f4dc41bf9f018ecc1042830d5534de941f329e
As a result, git cannot rebase them.