From: John Keeping Date: Thu, 09 Jan 2014 15:56:21 GMT Subject: Re: [BUG] "git rebase": fatal: Not a valid object name: '' Message-ID: <20140109155620.GH7608@serenity.lan> In-Reply-To: <20140109153618.GA18975@inner.h.apk.li> 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 what the appropriate fix would be. :-( 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...