]> Kevux Git Server - rit/commit
git-submodule.sh: get rid of isnumber
authorRoy Eldar <royeldar0@gmail.com>
Wed, 11 Dec 2024 06:32:30 +0000 (08:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2024 11:46:47 +0000 (20:46 +0900)
commit006f546bc30bd42de6ba569ab70ec80441f54430
treeb1fbe9a95349dec4f14f42bc95b7de613e74a40b
parente6c3e349458ec2ad36addc6004cffcfa6d663c38
git-submodule.sh: get rid of isnumber

It's entirely unnecessary to check whether the argument given to an
option (i.e. --summary-limit) is valid in the shell wrapper, since it's
already done when parsing the various options in git-submodule--helper.

Remove this check from the script; this both improves consistency
throughout the script, and the error message shown to the user in case
some invalid non-numeric argument was passed to "--summary-limit" is
more informative as well.

Signed-off-by: Roy Eldar <royeldar0@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh