]> git.ipfire.org Git - thirdparty/git.git/commit
replay: remove HEAD related sanity check
authorElijah Newren <newren@gmail.com>
Fri, 24 Nov 2023 11:10:38 +0000 (12:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Nov 2023 01:10:49 +0000 (10:10 +0900)
commitfda7dea7c95a7958d36ead75116c1ffbf1791cc0
tree0091192177f69cfe1a297072ffa53fc7eb3c70fc
parent4a37727626ae60c1e791c243679bc8d437052ee4
replay: remove HEAD related sanity check

We want replay to be a command that can be used on the server side on
any branch, not just the current one, so we are going to stop updating
HEAD in a future commit.

A "sanity check" that makes sure we are replaying the current branch
doesn't make sense anymore. Let's remove it.

Co-authored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c
t/t3650-replay-basics.sh