clone,fetch: catch non positive --depth option value
authorNguyễn Thái Ngọc Duy <redacted>
Thu, 5 Dec 2013 03:31:11 +0000 (10:31 +0700)
committerJunio C Hamano <redacted>
Fri, 6 Dec 2013 20:57:10 +0000 (12:57 -0800)
commit5594bcad21da70d2e9704cf96baa91b8d99dc27b
tree90367668eb9e3dcbe759e1bf92f3f9b385b015b0
parent2f93541d88fadd1ff5307d81c2c8921ee3eea058
clone,fetch: catch non positive --depth option value

Instead of simply ignoring the value passed to --depth option when
it is zero or negative, catch and report it as an error to let
people know that they were using the option incorrectly.

Original-patch-by: Andrés G. Aragoneses <redacted>
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clone.c
builtin/fetch.c
git clone https://git.99rst.org/PROJECT