Git fetch all with rebase after produces error
What steps will reproduce the problem?
- TortoiseGit -> Fetch
- Remote: origin (note that the branch combo is disabled so it will fetch all branches)
- Tick "Launch Rebase After Fetch".
- Press OK.
What is the expected output? What do you see instead?
Expected: it fetches all branches, then the rebase window is loaded for the current branch vs. its upstream remote. (eg. master vs. remotes/origin/master)
Actual: it fetches all branches, then the rebase window appears but shows this error:
libgit2 returned: Failed to parse revision specifier - Invalid pattern 'remotes/origin/'
Selecting the upstream branch manually after this works around the issue.
What version of TortoiseGit and Git are you using? On what operating system?
- TortoiseGit 22.214.171.124 (20161121-ddb9cc6f
- git version 2.9.3.windows.2
- Windows 8.1 x64
Please provide any additional information below.
Git Sync -> Fetch & Rebase behaves as expected, but fetches only a single branch, so the above is still needed sometimes, particularly when about to merge a branch pushed by someone else.
(On an unrelated note: the rebase window also gets a bit confused if a branch's upstream is set to a local branch rather than a remote one. Which you can't do with the TGit GUI but can on the command line.)