[BUG] git rebase: fatal: Not a valid object name: ''

2014-01-09 Thread Andreas Krey
Hi, everyone, since ad8261d (rebase: use reflog to find common base with upstream) a rebase without arguments says fatal: Not a valid object name: '', caused by trying to determine the fork point with an empty $switch_to. I don't really see what the appropriate fix would be. :-( Andreas --

Re: [BUG] git rebase: fatal: Not a valid object name: ''

2014-01-09 Thread John Keeping
On Thu, Jan 09, 2014 at 04:36:18PM +0100, Andreas Krey wrote: since ad8261d (rebase: use reflog to find common base with upstream) a rebase without arguments says fatal: Not a valid object name: '', caused by trying to determine the fork point with an empty $switch_to. I don't really see

Re: [BUG] git rebase: fatal: Not a valid object name: ''

2014-01-09 Thread Andreas Krey
On Thu, 09 Jan 2014 15:56:21 +, John Keeping wrote: ... I think the correct fix is to change the $switch_to in the call to git merge-base --fork-point to ${switch_to:-HEAD}, but I'm not at a machine where I can test that or work up a patch at the moment... Thanks, looks plausible and