clone,fetch: catch non positive --depth option value
commit5594bcad21da70d2e9704cf96baa91b8d99dc27b
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 5 Dec 2013 03:31:11 +0000 (5 10:31 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2013 20:57:10 +0000 (6 12:57 -0800)
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 <knocte@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/fetch.c