rebase: remove useless arguments check
[gitweb.git] / git-rebase.sh
index 8a3efa2983d08e38d40ae8b6dcecd82b0901ffa1..d1835ba58a253618ff4903d1b8c13749d285837c 100755 (executable)
@@ -5,6 +5,7 @@
 
 SUBDIRECTORY_OK=Yes
 OPTIONS_KEEPDASHDASH=
+OPTIONS_STUCKLONG=
 OPTIONS_SPEC="\
 git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
 git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
@@ -237,12 +238,10 @@ do
                action=${1##--}
                ;;
        --onto)
-               test 2 -le "$#" || usage
                onto="$2"
                shift
                ;;
        -x)
-               test 2 -le "$#" || usage
                cmd="${cmd}exec $2${LF}"
                shift
                ;;