Noticed by Sean.
Signed-off-by: Junio C Hamano <junkio@cox.net>
# Check if we are already based on $onto, but this should be
# done only when upstream and onto are the same.
# Check if we are already based on $onto, but this should be
# done only when upstream and onto are the same.
-if test "$upstream" = "onto"
+if test "$upstream" = "$onto"
then
mb=$(git-merge-base "$onto" "$branch")
if test "$mb" = "$onto"
then
mb=$(git-merge-base "$onto" "$branch")
if test "$mb" = "$onto"