rebase: error out for NO_PYTHON if they use recursive merge
recursive merge relies on Python, and we can't perform rename-aware merges without the recursive merge. So bail out before trying it. The test won't work w/o recursive merge, either, so skip that, too. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
committed by
Junio C Hamano
parent
c3fb0e358e
commit
693c15dc28
@ -300,6 +300,15 @@ then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if test "@@NO_PYTHON@@" && test "$strategy" = "recursive"
|
||||
then
|
||||
die 'The recursive merge strategy currently relies on Python,
|
||||
which this installation of git was not configured with. Please consider
|
||||
a different merge strategy (e.g. octopus, resolve, stupid, ours)
|
||||
or install Python and git with Python support.'
|
||||
|
||||
fi
|
||||
|
||||
# start doing a rebase with git-merge
|
||||
# this is rename-aware if the recursive (default) strategy is used
|
||||
|
||||
|
||||
Reference in New Issue
Block a user