]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rebase.c
rebase: verify commit parameter
authorRené Scharfe <l.s.r@web.de>
Thu, 31 Dec 2020 23:55:12 +0000 (00:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2021 23:24:13 +0000 (15:24 -0800)
commitca5120c339de883c3f22161316416c91655651ab
treed7f6ec3064bfcef21becfb2e21d619aa669a7c5b
parent898f80736c75878acc02dc55672317fcc0e0a5a6
rebase: verify commit parameter

If the user specifies a base commit to switch to, check if it actually
references a commit right away to avoid getting confused later on when
it turns out to be an invalid object.

Reported-by: LeSeulArtichaut <leseulartichaut@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c