From 9180feafbc7c637a4fae72d1ca1d3b2245b4302c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 30 May 2012 18:39:42 +0200 Subject: rebase: report invalid commit correctly In 9765b6a (rebase: align variable content, 2011-02-06), the code to error out was moved up one level. Unfortunately, one reference to a function parameter wasn't rewritten as it should, leading to the wrong parameter being errored on. This error was propagated by 71786f5 (rebase: factor out reference parsing, 2011-02-06) and merged in 78c6e0f (Merge branch 'mz/rebase', 2011-04-28). Correct this by reporting $onto_name istead. Reported-By: Manuela Hutter Signed-off-by: Erik Faye-Lund Signed-off-by: Junio C Hamano --- git-rebase.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-rebase.sh') diff --git a/git-rebase.sh b/git-rebase.sh index 0f5f5fb206..5e3c42cb11 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -469,7 +469,7 @@ case "$onto_name" in ;; *) onto=$(git rev-parse --verify "${onto_name}^0") || - die "Does not point to a valid commit: $1" + die "Does not point to a valid commit: $onto_name" ;; esac -- cgit v1.2.3